Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. reading the threading chapter C# 7.0

reading the threading chapter C# 7.0

Scheduled Pinned Locked Moved The Lounge
csharpwinformscomquestion
18 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    raddevus
    wrote on last edited by
    #1

    I'm reading the Threading Chapter of C# 7.0 in a Nutshell: The Definitive Reference: Joseph Albahari, Ben Albahari: 9781491987650: Amazon.com: Books[^]. I've done quite a bit of threading work, generally related to WinForms and Progress Bars and simpler challenges like that in the past. Now with Async / Await, I've done a bit too (under UWP) but this chapter is great because it starts with the more historical "manual" threading and builds through the modern ways to solve concurrency challenges. Really great, in-depth writing. Have any of you read this chapter?

    L R P W 4 Replies Last reply
    0
    • R raddevus

      I'm reading the Threading Chapter of C# 7.0 in a Nutshell: The Definitive Reference: Joseph Albahari, Ben Albahari: 9781491987650: Amazon.com: Books[^]. I've done quite a bit of threading work, generally related to WinForms and Progress Bars and simpler challenges like that in the past. Now with Async / Await, I've done a bit too (under UWP) but this chapter is great because it starts with the more historical "manual" threading and builds through the modern ways to solve concurrency challenges. Really great, in-depth writing. Have any of you read this chapter?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Quote:

      Have any of you read this chapter?

      No, but your book: Programming Windows 10 Via UWP, arrived late yesterday. I plan to start reading it today. First impression: I like the large size of the pages, making it easier to read for an old guy who is heavily dependent on reading glasses.

      Get me coffee and no one gets hurt!

      R 1 Reply Last reply
      0
      • L Lost User

        Quote:

        Have any of you read this chapter?

        No, but your book: Programming Windows 10 Via UWP, arrived late yesterday. I plan to start reading it today. First impression: I like the large size of the pages, making it easier to read for an old guy who is heavily dependent on reading glasses.

        Get me coffee and no one gets hurt!

        R Offline
        R Offline
        raddevus
        wrote on last edited by
        #3

        Cornelius Henning wrote:

        your book: Programming Windows 10 Via UWP, arrived late yesterday.

        That's very cool. Thanks so much for trying my book out. I hope you find it useful.

        Cornelius Henning wrote:

        I like the large size of the pages,

        Glad you like that too. I am now (over 40...by 10 years). I had 20/20 vision up until I was 42 or so and since then it's been reading glasses so I find it nice when things are a little more clear too. One of the big things I was shooting for on that was that the screen shots would still look good. I hope they do. Thanks again!:thumbsup:

        E 1 Reply Last reply
        0
        • R raddevus

          I'm reading the Threading Chapter of C# 7.0 in a Nutshell: The Definitive Reference: Joseph Albahari, Ben Albahari: 9781491987650: Amazon.com: Books[^]. I've done quite a bit of threading work, generally related to WinForms and Progress Bars and simpler challenges like that in the past. Now with Async / Await, I've done a bit too (under UWP) but this chapter is great because it starts with the more historical "manual" threading and builds through the modern ways to solve concurrency challenges. Really great, in-depth writing. Have any of you read this chapter?

          R Offline
          R Offline
          RickZeeland
          wrote on last edited by
          #4

          No, we only have C# 6.0 in a Nutshell, but I agree that this is one of the most useful books around.

          R E 2 Replies Last reply
          0
          • R RickZeeland

            No, we only have C# 6.0 in a Nutshell, but I agree that this is one of the most useful books around.

            R Offline
            R Offline
            raddevus
            wrote on last edited by
            #5

            RickZeeland wrote:

            No, we only have C# 6.0 in a Nutshell,

            I think the threading chapter is very similar, if not the same in both anyways. This chapter is just so good. I really like the way it builds up the story of threading -- how it has worked in past, using lambdas, handling exceptions, etc. Each little bit step by step. Very cool.:cool: Great writing.

            1 Reply Last reply
            0
            • R raddevus

              Cornelius Henning wrote:

              your book: Programming Windows 10 Via UWP, arrived late yesterday.

              That's very cool. Thanks so much for trying my book out. I hope you find it useful.

              Cornelius Henning wrote:

              I like the large size of the pages,

              Glad you like that too. I am now (over 40...by 10 years). I had 20/20 vision up until I was 42 or so and since then it's been reading glasses so I find it nice when things are a little more clear too. One of the big things I was shooting for on that was that the screen shots would still look good. I hope they do. Thanks again!:thumbsup:

              E Offline
              E Offline
              Ehsan Sajjad
              wrote on last edited by
              #6

              where i can find the book on UWP ?

              R 1 Reply Last reply
              0
              • R RickZeeland

                No, we only have C# 6.0 in a Nutshell, but I agree that this is one of the most useful books around.

                E Offline
                E Offline
                Ehsan Sajjad
                wrote on last edited by
                #7

                does the newer versions of NutShell also contain the previous versions content in them, as if i remember i had read few chapters of c# 5.0 in a nutshell 2 years back and it was indeed a good read for me but wasn't able to finish the whole book.

                R 1 Reply Last reply
                0
                • E Ehsan Sajjad

                  where i can find the book on UWP ?

                  R Offline
                  R Offline
                  raddevus
                  wrote on last edited by
                  #8

                  Thanks for asking -- you can get it at amazon (chpt 1 - 15) only $2.99, but I can't get amazon's print book to work on that one for some reason it wont' format it properly: Programming Windows 10 View UWP (complete) chpt 1-15[^] You can get each of the separate (Part 1 & Part 2) print books also: Programming Windows 10 Via UWP: Part 1 (chapters 1-8) [^] Programming Windows 10 Via UWP: Part 2 (chapters 9-15) [^] Each of the parts is approx 200 pages long in print (8.5 x 11 inches).

                  1 Reply Last reply
                  0
                  • E Ehsan Sajjad

                    does the newer versions of NutShell also contain the previous versions content in them, as if i remember i had read few chapters of c# 5.0 in a nutshell 2 years back and it was indeed a good read for me but wasn't able to finish the whole book.

                    R Offline
                    R Offline
                    raddevus
                    wrote on last edited by
                    #9

                    Ehsan Sajjad wrote:

                    also contain the previous versions content in them

                    Basically it does, because the authors are really good at explaining what has changed along the way which is also why the book is so good. For example in the threading chapter they talk about C# pre-lambda calls and how passing argument to a new thread is different back then. really great stuff.

                    1 Reply Last reply
                    0
                    • R raddevus

                      I'm reading the Threading Chapter of C# 7.0 in a Nutshell: The Definitive Reference: Joseph Albahari, Ben Albahari: 9781491987650: Amazon.com: Books[^]. I've done quite a bit of threading work, generally related to WinForms and Progress Bars and simpler challenges like that in the past. Now with Async / Await, I've done a bit too (under UWP) but this chapter is great because it starts with the more historical "manual" threading and builds through the modern ways to solve concurrency challenges. Really great, in-depth writing. Have any of you read this chapter?

                      P Offline
                      P Offline
                      Pete OHanlon
                      wrote on last edited by
                      #10

                      A minor point (correction) but async/await is not threading and threading is not async/await. You can think of async/await as being Task based rather than Thread based.

                      This space for rent

                      R L E 3 Replies Last reply
                      0
                      • P Pete OHanlon

                        A minor point (correction) but async/await is not threading and threading is not async/await. You can think of async/await as being Task based rather than Thread based.

                        This space for rent

                        R Offline
                        R Offline
                        raddevus
                        wrote on last edited by
                        #11

                        Pete O'Hanlon wrote:

                        A minor point (correction) but async/await is not threading and threading is not async/await

                        Agreed. It is a concurrency / asynchronous thing not really threading. I now try to always say concurrency but I often fall back on old words. :) This is also why I'm reading this chapter because the authors cover all of this. Thanks

                        1 Reply Last reply
                        0
                        • P Pete OHanlon

                          A minor point (correction) but async/await is not threading and threading is not async/await. You can think of async/await as being Task based rather than Thread based.

                          This space for rent

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #12

                          Quote:

                          async/await is not threading and threading is not async/await.

                          :thumbsup: It took me a while to understand this fact!

                          Get me coffee and no one gets hurt!

                          1 Reply Last reply
                          0
                          • P Pete OHanlon

                            A minor point (correction) but async/await is not threading and threading is not async/await. You can think of async/await as being Task based rather than Thread based.

                            This space for rent

                            E Offline
                            E Offline
                            Ehsan Sajjad
                            wrote on last edited by
                            #13

                            but then how the method executes asynchronously while the main thread still continues doing it's work , the async method which is being called in executed in what thread then ?

                            P 1 Reply Last reply
                            0
                            • E Ehsan Sajjad

                              but then how the method executes asynchronously while the main thread still continues doing it's work , the async method which is being called in executed in what thread then ?

                              P Offline
                              P Offline
                              Pete OHanlon
                              wrote on last edited by
                              #14

                              With async/await, as also for Tasks, you have to think in terms of SynchronizationContexts instead of threads. There's an excellent overview of this concept here[^].

                              This space for rent

                              J E 2 Replies Last reply
                              0
                              • P Pete OHanlon

                                With async/await, as also for Tasks, you have to think in terms of SynchronizationContexts instead of threads. There's an excellent overview of this concept here[^].

                                This space for rent

                                J Offline
                                J Offline
                                Jorgen Andersson
                                wrote on last edited by
                                #15

                                Threadpooling, cool!

                                Wrong is evil and must be defeated. - Jeff Ello

                                1 Reply Last reply
                                0
                                • P Pete OHanlon

                                  With async/await, as also for Tasks, you have to think in terms of SynchronizationContexts instead of threads. There's an excellent overview of this concept here[^].

                                  This space for rent

                                  E Offline
                                  E Offline
                                  Ehsan Sajjad
                                  wrote on last edited by
                                  #16

                                  Thanks, i will give a read.

                                  1 Reply Last reply
                                  0
                                  • R raddevus

                                    I'm reading the Threading Chapter of C# 7.0 in a Nutshell: The Definitive Reference: Joseph Albahari, Ben Albahari: 9781491987650: Amazon.com: Books[^]. I've done quite a bit of threading work, generally related to WinForms and Progress Bars and simpler challenges like that in the past. Now with Async / Await, I've done a bit too (under UWP) but this chapter is great because it starts with the more historical "manual" threading and builds through the modern ways to solve concurrency challenges. Really great, in-depth writing. Have any of you read this chapter?

                                    W Offline
                                    W Offline
                                    Wearwolf
                                    wrote on last edited by
                                    #17

                                    Does it talk about how to create an Asynchronous method using tasks? Most information I've found about async/await is about the caller, "You mark a method as async and then use await to call asynchronous methods". I haven't been able to find a lot on how one would actually go about writing an asynchronous method to be called by await.

                                    R 1 Reply Last reply
                                    0
                                    • W Wearwolf

                                      Does it talk about how to create an Asynchronous method using tasks? Most information I've found about async/await is about the caller, "You mark a method as async and then use await to call asynchronous methods". I haven't been able to find a lot on how one would actually go about writing an asynchronous method to be called by await.

                                      R Offline
                                      R Offline
                                      raddevus
                                      wrote on last edited by
                                      #18

                                      I'm just reading the Async stuff today so I paged through. The information is very detailed about Async / Await and walks you through small detailed uses and builds upon it so they hit everything. A large number of pages dedicated to explaining it very well.

                                      Wearwolf wrote:

                                      I haven't been able to find a lot on how one would actually go about writing an asynchronous method to be called by await.

                                      It looks like there are specific examples to do that also.

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • World
                                      • Users
                                      • Groups