.NET Parallel Programming
All about Async/Await, System.Threading.Tasks, System.Collections.Concurrent, System.Linq, and more…
Latest posts
Should I expose asynchronous wrappers for synchronous methods?
Lately I’ve received several questions along the lines of the following, which I typically summarize as “async over sync”: In my library, I ...
Is it ok to use nested Parallel.For loops?
Every now and then, I get this question: “is it ok to use nested Parallel.For loops?” The short answer is “yes.” As is often the case, the longer ...
Are you using TPL Dataflow? We’d love to know!
Are you using the new System.Threading.Tasks.Dataflow.dll library, either from its CTPs or from the .NET 4.5 Developer Preview or Beta? We'd love to hear ...
Implementing a simple ForEachAsync, part 2
After my previous post, I received several emails and comments from folks asking why I chose to implement ForEachAsync the way I did. My goal with that ...
Implementing a simple ForEachAsync
Jon Skeet recently asked me how I might go about implementing the following “asynchronous ForEach” behavior: Given what we now know about ...
Visual Studio 11 Beta currently incompatible with AsyncCtpLibrary*.dll
The C# and Visual Basic compilers implement support for async/await by generating code that utilizes some specific types in the underlying framework. ...
“The Zen of Async” at the MVP Summit 2012
Thanks to everyone who attended my "The Zen of Async" presentation on Thursday at the MVP Summit. As I've had several requests, here are the slides and ...
What’s New for Parallelism in .NET 4.5 Beta
At //BUILD/ in September, we blogged about the wealth of new support available for parallelism in the .NET Framework 4.5 Developer Preview. Since then, we...
Building Async Coordination Primitives, Part 7: AsyncReaderWriterLock
In my last past, we looked at building an AsyncLock in terms of an AsyncSemaphore. In this post, we’ll build a more advanced construct, an ...