Skip to main content
Microsoft
.NET Parallel Programming
.NET Parallel Programming
  • Home
  • DevBlogs
    • Visual Studio
    • Visual Studio Code
    • Visual Studio for Mac
    • DevOps
    • Developer support
    • CSE Developer
    • Engineering@Microsoft
    • Azure SDK
    • IoT
    • Command Line
    • Perf and Diagnostics
    • Dr. International
    • Notification Hubs
    • Math in Office
    • DirectX
    • PIX
    • SurfaceDuo
    • Startups
    • Sustainable Engineering
    • Windows AI Platform
    • C++
    • C#
    • F#
    • Visual Basic
    • TypeScript
    • PowerShell Community
    • PowerShell Team
    • Python
    • Q#
    • JavaScript
    • Java
    • Java Blog in Chinese
    • .NET
    • .NET MAUI
    • Blazor
    • ASP.NET
    • NuGet
    • Xamarin
    • #ifdef Windows
    • Apps for Windows
    • Azure Depth Platform
    • Azure Government
    • Bing Dev Center
    • Microsoft Edge Dev
    • Microsoft Azure
    • Microsoft 365 Developer
    • Old New Thing
    • Windows MIDI and Music dev
    • Windows Search Platform
    • Azure Cosmos DB
    • Azure Data Studio
    • Azure SQL Database
    • OData
    • Revolutions R
    • SQL Server Data Tools

    .NET Parallel Programming

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

    ThreadPool - .NET Parallel Programming

    Should I expose synchronous wrappers for asynchronous methods?
    Should I expose synchronous wrappers for asynchronous methods?
    April 13, 2012 Apr 13, 2012 04/13/12
    Stephen Toub - MSFT
    In a previous post Should I expose asynchronous wrappers for synchronous methods?, I discussed “async over sync,” the notion of using synchronous functionality asynchronously and the benefits that doing so may or may not yield. The other direction of “sync over async” is also interesting to explore. Avoid Exposing ...

    3.NET 4.NET 4.5Async
    Is it ok to use nested Parallel.For loops?
    Is it ok to use nested Parallel.For loops?
    March 14, 2012 Mar 14, 2012 03/14/12
    Stephen Toub - MSFT
    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 answer is, well, longer. Typically when folks ask this question, they’re concerned about one of two things.  First, they’re concerned that each nested loop will assume it “...

    Comments are closed.0.NET 4Parallel ExtensionsTask Parallel Library
    ThreadPool performance you can see
    ThreadPool performance you can see
    April 13, 2010 Apr 13, 2010 04/13/10
    Stephen Toub - MSFT
    We've spent a lot of time touting improvements to the .NET Framework in .NET 4 around threading, including core enhancements to the performance of the runtime itself.  Sometimes data is more powerful than words, however, and it's useful to be able to see exactly what kind of difference such improvements can make.  To assist with that...

    Comments are closed.0.NET 4ThreadPool
    ParallelExtensionsExtras Tour – #7 – Additional TaskSchedulers
    ParallelExtensionsExtras Tour – #7 – Additional TaskSchedulers
    April 9, 2010 Apr 9, 2010 04/9/10
    Stephen Toub - MSFT
    (The full set of ParallelExtensionsExtras Tour posts is available here.)In our last two ParallelExtensionsExtras blog tour posts, we’ve discussed two TaskScheduler implementations in ParallelExtensionsExtras: StaTaskScheduler and ConcurrentExclusiveInterleave.  These are just 2 of more than 10 schedulers in ParallelExtensionsExtras...

    Comments are closed.0.NET 4Code SamplesParallel Extensions
    PDC09 Parallelism Session Videos Now Available
    PDC09 Parallelism Session Videos Now Available
    November 21, 2009 Nov 21, 2009 11/21/09
    Stephen Toub - MSFT
    Attendees at PDC09 this past week were privy to quite a few sessions on parallel computing.  Now that the videos of these sessions are online, you can view them as well from the comfort of your own home.  Here are some of the key parallelism-related sessions from this past week:Overview  Managed code in Visual Studio 2010...

    Comments are closed.0.NET 4C++F#
    Slides from Parallelism Tour
    Slides from Parallelism Tour
    November 1, 2009 Nov 1, 2009 11/1/09
    Stephen Toub - MSFT
    Last week, I had the privilege of touring around Tennessee, Kentucky, Ohio, and Michigan, speaking about the new parallel computing support in Visual Studio 2010 and the .NET Framework 4.  Many folks I spoke with were interested in getting a copy of the slide deck I used, so I’ve attached it to this blog post.  Enjoy! ...

    Comments are closed.0.NET 4Coordination Data StructuresParallel Extensions
    Task.Wait and “Inlining”
    Task.Wait and “Inlining”
    October 15, 2009 Oct 15, 2009 10/15/09
    Stephen Toub - MSFT
    “What does Task.Wait do?” Simple question, right?  At a high-level, yes, the method achieves what its name implies, preventing the current thread from making forward progress past the call to Wait until the target Task has completed, one way or another.  If the Task ran to completion, Wait will return successfully.  ...

    Comments are closed.0Parallel ExtensionsTask Parallel LibraryThreadPool
    TaskScheduler.FromCurrentSynchronizationContext
    TaskScheduler.FromCurrentSynchronizationContext
    September 22, 2009 Sep 22, 2009 09/22/09
    Stephen Toub - MSFT
    The Task abstractions in .NET 4 run on instances of the TaskScheduler class.  Two implementations of TaskScheduler ship as part of the .NET Framework 4.  The first is the default scheduler, which is integrated with the .NET 4 ThreadPool and takes advantage of its work-stealing queues.  The second is the type of TaskScheduler ...

    Comments are closed.0.NET 4Code SamplesParallel Extensions
    TaskCreationOptions.PreferFairness
    TaskCreationOptions.PreferFairness
    July 7, 2009 Jul 7, 2009 07/7/09
    Stephen Toub - MSFT
    One of the ways in which the Task Parallel Library achieves good performance is through “work-stealing”.  Work-stealing is supported in the .NET 4 ThreadPool for access through the Task Parallel Library and its default scheduler.  This manifests as every thread in the ThreadPool having its own queue for work; when that ...

    Comments are closed.0.NET 4Parallel ExtensionsTask Parallel Library
    Tasks and Unhandled Exceptions
    Tasks and Unhandled Exceptions
    June 1, 2009 Jun 1, 2009 06/1/09
    Stephen Toub - MSFT
    Prior to the .NET Framework 2.0, unhandled exceptions were largely ignored by the runtime.  For example, if a work item queued to the ThreadPool threw an exception that went unhandled by that work item, the ThreadPool would eat that exception and continue on its merry way.  Similarly, if a finalizer running on the finalizer thread ...

    Comments are closed.0.NET 4Code SamplesParallel Extensions
    • 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 Pro 8
    • Surface Laptop Studio
    • Surface Pro X
    • Surface Go 3
    • Surface Duo 2
    • Surface Pro 7+
    • Windows 11 apps
    • HoloLens 2
    Microsoft Store
    • Account profile
    • Download Center
    • Microsoft Store support
    • Returns
    • Order tracking
    • Virtual workshops and training
    • Microsoft Store Promise
    • Flexible Payments
    Education
    • Microsoft in education
    • Devices for education
    • Microsoft Teams for Education
    • Microsoft 365 Education
    • Education consultation appointment
    • Educator training and development
    • Deals for students and parents
    • Azure for students
    Business
    • Microsoft Cloud
    • Microsoft Security
    • Azure
    • Dynamics 365
    • Microsoft 365
    • Microsoft Advertising
    • Microsoft Industry
    • Microsoft Teams
    Developer & IT
    • Developer Center
    • Documentation
    • Microsoft Learn
    • Microsoft Tech Community
    • Azure Marketplace
    • AppSource
    • Microsoft Power Platform
    • Visual Studio
    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 2022