Synchronization with async/await

Do you always want to block whole thread waiting for some resources? Probably not. Why not benefit from async/await constructs available in .NET 4.5? But you cannot simply await for ManualResetEvent or Semaphore. Here comes great series of posts by Stephen Toub on how to implement async-enabled synchronization mechanisms.

It starts with ManualResetEvent, and then continuous for total of 7 blog posts. Must-read for all async/await fans out there.

Just start from http://blogs.msdn.com/b/pfxteam/archive/2012/02/11/10266920.aspx and move forward.

Have fun!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s