Skip to main content
Microsoft
.NET Parallel Programming
.NET Parallel Programming
  • Home
  • DevBlogs
    • Azure DevOps
    • Notification Hubs
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • Azure Artifacts
    • Azure Boards
    • Azure Pipelines
    • Azure Repos
    • Azure Test Plans
    • DevOps
    • C++
    • Java
    • Java Blog in Chinese
    • JavaScript
    • PowerShell Community
    • PowerShell Team
    • Python
    • Q#
    • Scripting
    • TypeScript
    • Visual Basic
    • Visual C#
    • Visual F#
    • .NET
    • ASP.NET
    • NuGet
    • Xamarin
    • #ifdef Windows
    • Apps for Windows
    • Azure Depth Platform
    • Azure Government
    • Azure SDKs
    • Bing Dev Center
    • Command Line
    • CSE Developer
    • Developer Support
    • DirectX Developer Blog
    • IoT Developer
    • Math In Office
    • Microsoft Edge Dev
    • Microsoft Azure
    • Office 365 Development
    • Old New Thing
    • PAX Media
    • Perf and Diagnostics
    • PIX on Windows
    • Startup Developers
    • Surface Duo
    • Sustainable Software
    • Windows Search Platform
    • Azure Cosmos DB
    • Azure Data Studio
    • Azure SQL
    • Azure Synapse Analytics
    • OData
    • Revolutions R
    • SQL Server Data Tools

    .NET Parallel Programming

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

    February 2012 | .NET Parallel Programming

    What’s New for Parallelism in .NET 4.5 Beta
    What’s New for Parallelism in .NET 4.5 Beta
    AvatarStephen Toub - MSFTFebruary 29, 2012Feb 29, 201202/29/12
    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’ve been hard at work on the .NET 4.5 Beta.  With the beta just released, here are a few interesting and related things that are new or have changed since the Developer ...

    Comments are closed.0.NET 4.5Async
    Building Async Coordination Primitives, Part 7: AsyncReaderWriterLock
    Building Async Coordination Primitives, Part 7: AsyncReaderWriterLock
    AvatarStephen Toub - MSFTFebruary 12, 2012Feb 12, 201202/12/12
    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 asynchronous reader/writer lock.An asynchronous reader/writer lock is more complicated than any of the previous coordination primitives we’ve created.  It also involves more policy, ...

    Comments are closed.0.NET 4.5Async
    Building Async Coordination Primitives, Part 6: AsyncLock
    Building Async Coordination Primitives, Part 6: AsyncLock
    AvatarStephen Toub - MSFTFebruary 12, 2012Feb 12, 201202/12/12
    Last time, we looked at building an AsyncSemaphore.  Here, we’ll look at building support for an async mutual exclusion mechanism that supports scoping via ‘using’.As mentioned in the previous post, semaphores are great for throttling and resource management.  You can give a semaphore an initial count of the number ...

    Comments are closed.0.NET 4.5Async
    Building Async Coordination Primitives, Part 5: AsyncSemaphore
    Building Async Coordination Primitives, Part 5: AsyncSemaphore
    AvatarStephen Toub - MSFTFebruary 12, 2012Feb 12, 201202/12/12
    In my last few posts, I covered building an AsyncManualResetEvent, an AsyncAutoResetEvent, an AsyncCountdownEvent, and an AsyncBarrier.  In this post, I’ll cover building an AsyncSemaphore class.Semaphores have a wide range of applicability.  They’re great for throttling, for protected access to a limited set of resources...

    1.NET 4.5Async
    Building Async Coordination Primitives, Part 4: AsyncBarrier
    Building Async Coordination Primitives, Part 4: AsyncBarrier
    AvatarStephen Toub - MSFTFebruary 11, 2012Feb 11, 201202/11/12
    Last time, we looked at building an AsyncCountdownEvent.  At the end of the post, I highlighted a common pattern for using such a type, which is for all of the participants to signal and then wait for all of the other participants to signal as well.  This kind of synchronization is typically referred to as a “barrier,” ...

    Comments are closed.0.NET 4.5Async
    Building Async Coordination Primitives, Part 3: AsyncCountdownEvent
    Building Async Coordination Primitives, Part 3: AsyncCountdownEvent
    AvatarStephen Toub - MSFTFebruary 11, 2012Feb 11, 201202/11/12
    In my last two posts, I discussed building AsyncManualResetEvent and AsyncAutoResetEvent coordination primitives.  In this post, I’ll build on that to create a simple AsyncCountdownEvent.A countdown event is an event that will allow waiters to complete after receiving a particular number of signals.  The “countdown&rdquo...

    Comments are closed.0.NET 4.5Coordination Data Structures
    Building Async Coordination Primitives, Part 2: AsyncAutoResetEvent
    Building Async Coordination Primitives, Part 2: AsyncAutoResetEvent
    AvatarStephen Toub - MSFTFebruary 11, 2012Feb 11, 201202/11/12
    In my last post, I discussed building an asynchronous version of a manual-reset event.  This time, we’ll build an asynchronous version of an auto-reset event.A manual-reset event is transitioned to the signaled state when requested to do so (i.e. calling Set()), and then it remains in that state until it’s manually ...

    Comments are closed.0.NET 4.5Async
    Building Async Coordination Primitives, Part 1: AsyncManualResetEvent
    Building Async Coordination Primitives, Part 1: AsyncManualResetEvent
    AvatarStephen Toub - MSFTFebruary 11, 2012Feb 11, 201202/11/12
    The Task-based Async Pattern (TAP) isn’t just about asynchronous operations that you initiate and then asynchronously wait for to complete.  More generally, tasks can be used to represent all sorts of happenings, enabling you to await for any matter of condition to occur.  We can even use Tasks to build simple coordination ...

    9.NET 4.5Async
    Potential pitfalls to avoid when passing around async lambdas
    Potential pitfalls to avoid when passing around async lambdas
    AvatarStephen Toub - MSFTFebruary 8, 2012Feb 8, 201202/8/12
    One of the really useful capabilities of the new async methods feature in C# and Visual Basic is the ability to write async lambdas and anonymous methods (from here on in this post, I’ll refer to both of these as async lambdas, since the discussion applies equally to both).  This allows you to easily get a delegate to represent an ...

    Comments are closed.0.NET 4.5Async
    When “ExecuteSynchronously” doesn’t execute synchronously
    When “ExecuteSynchronously” doesn’t execute synchronously
    AvatarStephen Toub - MSFTFebruary 7, 2012Feb 7, 201202/7/12
    When creating a task continuation with ContinueWith, developers have the opportunity to provide a TaskContinuationOptions enum value, which could include the TaskContinuationOptions.ExecuteSynchronously flag.  ExecuteSynchronously is a request for an optimization to run the continuation task on the same thread that completed the ...

    Comments are closed.0.NET 4.NET 4.5
    • Page 1
    • Page 2
    • Next page
    Relevant Links

    corefx repository on GitHub

    .NET

    Microsoft Azure

    Top Bloggers
    Archive
  • February 2015
  • April 2013
  • March 2013
  • February 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • June 2011
  • May 2011
  • April 2011
  • February 2011
  • January 2011
  • November 2010
  • October 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • Stay informed

    Login
    Code Block
    What's new
    • Surface Duo
    • Surface Laptop Go
    • Surface Pro X
    • Surface Go 2
    • Surface Book 3
    • Microsoft 365
    • Windows 10 apps
    • HoloLens 2
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Virtual workshops and training
    • Microsoft Store Promise
    • Financing
    Education
    • Microsoft in education
    • Office for students
    • Office 365 for schools
    • Deals for students & parents
    • Microsoft Azure in education
    Enterprise
    • Azure
    • AppSource
    • Automotive
    • Government
    • Healthcare
    • Manufacturing
    • Financial services
    • Retail
    Developer
    • Microsoft Visual Studio
    • Windows Dev Center
    • Developer Center
    • Microsoft developer program
    • Channel 9
    • Microsoft 365 Dev Center
    • Microsoft 365 Developer Program
    • Microsoft Garage
    Company
    • Careers
    • About Microsoft
    • Company news
    • Privacy at Microsoft
    • Investors
    • Diversity and inclusion
    • Accessibility
    • Security
    English (United States)
    • Sitemap
    • Contact Microsoft
    • Privacy
    • Manage cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2021