Sign In
Parallel Programming with .NET
All about System.Threading, System.Threading.Tasks, System.Collections.Concurrent, System.Linq, and more...
Search Parallel Programming
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Disclaimer
These postings are provided "AS IS" with no warranties and confer no rights. All code and tools presented are done so under the Microsoft Public License.
Options
RSS for posts
Atom
RSS for comments
OK
Tags
.NET 4
.NET 4.5
Article Summary
Async
C++
Cancellation
Code Samples
Coordination Data Structures
Dataflow
Debugging
F#
FAQ
Feedback Requested
Media
MSDN
Parallel Extensions
ParallelExtensionsExtras
Parallelism Blockers
PLINQ
Release
Talks
Task Parallel Library
ThreadPool
Tools
Visual Studio 2010
Archive
Archives
February 2012
(13)
January 2012
(5)
December 2011
(3)
November 2011
(8)
October 2011
(5)
September 2011
(6)
June 2011
(3)
May 2011
(3)
April 2011
(2)
February 2011
(1)
January 2011
(6)
November 2010
(2)
October 2010
(5)
August 2010
(2)
July 2010
(3)
June 2010
(7)
May 2010
(6)
April 2010
(23)
March 2010
(3)
February 2010
(10)
January 2010
(6)
December 2009
(3)
November 2009
(12)
October 2009
(10)
September 2009
(1)
August 2009
(3)
July 2009
(6)
June 2009
(11)
May 2009
(13)
April 2009
(4)
March 2009
(2)
February 2009
(4)
January 2009
(1)
December 2008
(1)
November 2008
(3)
October 2008
(6)
September 2008
(1)
August 2008
(5)
July 2008
(2)
June 2008
(15)
May 2008
(4)
April 2008
(1)
March 2008
(6)
February 2008
(6)
January 2008
(4)
December 2007
(10)
November 2007
(6)
June, 2009
MSDN Blogs
>
Parallel Programming with .NET
>
June, 2009
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Parallel Programming with .NET
Asynchronous methods, C# iterators, and Tasks
Posted
over 3 years ago
by
Stephen Toub - MSFT
23
Comments
More and more, developers are realizing the significant scalability advantages that asynchronous programming can provide, especially as it relates to I/O. Consider an application that needs to copy data from one stream to another stream, such as is being...
Parallel Programming with .NET
Don’t dispose of objects that you don’t own
Posted
over 3 years ago
by
phillips.joshua
10
Comments
In concurrent programs, race conditions are a fact of life but they aren’t all bad. Sometimes, race conditions are benign, as is often the case with lazy initialization. The problem with racing to set a value, however, is that it can result...
Parallel Programming with .NET
Parallel For Loops over Non-Integral Types
Posted
over 3 years ago
by
Stephen Toub - MSFT
1
Comments
In a previous post, it was demonstrated how for loops with very small loop bodies could be parallelized by creating an iterator over ranges, and then using Parallel.ForEach over those ranges. A similar technique can be used to write parallel loops over...
Parallel Programming with .NET
Cancellation in Parallel Extensions
Posted
over 3 years ago
by
Mike Liddell
8
Comments
One of the great features that crosses all of Parallel Extensions types is a consistent approach to cancellation (see http://blogs.msdn.com/pfxteam/archive/2009/05/22/9635790.aspx ). In this post we explore some of the ways cancellation is used in Parallel...
Parallel Programming with .NET
Tasks and the Event-based Asynchronous Pattern
Posted
over 3 years ago
by
Stephen Toub - MSFT
15
Comments
As has been discussed previously, one of the new features in the Task Parallel Library is TaskCompletionSource<TResult> , which enables the creation of a Task<TResult> that represents any other asynchronous operation. There are a wide variety...
Parallel Programming with .NET
How PLINQ processes an IEnumerable<T> on multiple cores
Posted
over 3 years ago
by
Igor Ostrovsky - MSFT
15
Comments
As Ed Essey explained in Partitioning in PLINQ , partitioning is an important step in PLINQ execution. Partitioning splits up a single input sequence into multiple sequences that can be processed in parallel. This post further explains chunk partitioning...
Parallel Programming with .NET
Tasks and the APM Pattern
Posted
over 3 years ago
by
Stephen Toub - MSFT
15
Comments
The Asynchronous Programming Model (APM) in the .NET Framework has been around since .NET 1.0 and is the most common pattern for asynchrony in the Framework. Even if you’re not familiar with the name, you’re likely familiar with the core of the...
Parallel Programming with .NET
Achieving Speedups with Small Parallel Loop Bodies
Posted
over 3 years ago
by
Stephen Toub - MSFT
14
Comments
The Parallel class represents a significant advancement in parallelizing managed loops. For many common scenarios, it just works, resulting in terrific speedups. However, while ideally Parallel.For could be all things to all people, such things rarely...
Parallel Programming with .NET
Mechanisms for Creating Tasks
Posted
over 3 years ago
by
Stephen Toub - MSFT
16
Comments
The core entity in the Task Parallel Library around which everything else revolves is System.Threading.Tasks.Task. The most common way of creating a Task will be through the StartNew method on the TaskFactory class, a default instance of which is exposed...
Parallel Programming with .NET
The Nature of TaskCompletionSource<TResult>
Posted
over 3 years ago
by
Stephen Toub - MSFT
8
Comments
The Task Parallel Library is centered around the Task class and its derived Task<TResult> . The main purpose of these types is to represent the execution of an asynchronous workload and to provide an object with a means to operate on that workload...
Parallel Programming with .NET
CLR 4 – Inside the ThreadPool
Posted
over 3 years ago
by
Stephen Toub - MSFT
2
Comments
As we’ve mentioned previously, the .NET ThreadPool has undergone some serious renovations in .NET 4, improvements on which the Task Parallel Library and PLINQ both rely. Erika Parsons and Eric Eilebrecht are the PM and developer on the CLR team...
Page 1 of 1 (11 items)