reading the threading chapter C# 7.0
-
where i can find the book on UWP ?
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).
-
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.
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.
-
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?
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
-
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
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
-
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
-
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
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 ?
-
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 ?
-
Threadpooling, cool!
Wrong is evil and must be defeated. - Jeff Ello
-
Thanks, i will give a read.
-
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?
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.
-
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.
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.