.NET Parallel Programming

All about Async/Await, System.Threading.Tasks, System.Collections.Concurrent, System.Linq, and more…

Latest posts

Stephen Toub - MSFT
Stephen Toub - MSFT
Mar 24, 2012

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 ...

0
2
Stephen Toub - MSFT
Stephen Toub - MSFT
Mar 14, 2012

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 ...

0
1
Stephen Toub - MSFT
Stephen Toub - MSFT
Mar 6, 2012

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 ...

0
0
Stephen Toub - MSFT
Stephen Toub - MSFT
Mar 5, 2012

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 ...

2
2
Stephen Toub - MSFT
Stephen Toub - MSFT
Mar 4, 2012

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 ...

0
1
Stephen Toub - MSFT
Stephen Toub - MSFT
Mar 3, 2012

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.  ...

0
0
Stephen Toub - MSFT
Stephen Toub - MSFT
Mar 3, 2012

“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 ...

0
0
Stephen Toub - MSFT
Stephen Toub - MSFT
Feb 29, 2012

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...

0
0
Stephen Toub - MSFT
Stephen Toub - MSFT
Feb 12, 2012

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 ...

0
3