Showing results for May 2009 - .NET Parallel Programming

May 29, 2009
0
1

ParallelOptions.MaxDegreeOfParallelism vs PLINQ’s WithDegreeOfParallelism

Stephen Toub - MSFT
Stephen Toub - MSFT

We exert a good deal of effort ensuring that the APIs we provide are consistent within Parallel Extensions as well as with the rest of the .NET Framework.  This is from many angles, including behavior and general design, but also naming.  So when there are slight differences in naming, it raises questions.One occurrence of such a slight n...

Parallel ExtensionsTask Parallel Library.NET 4
May 28, 2009
0
0

Partitioning in PLINQ

essey
essey

Here’s a simple way to look at it.  On a 4-core machine, take 4 million elements, divide this into 4 partitions of 1 million elements each, and give each of the 4 cores a million elements of data to process.  Assuming that the data and the processing of the data is uniform, that all of the cores operate with the same amount of effective...

May 27, 2009
0
1

Exiting from Parallel Loops Early

Stephen Toub - MSFT
Stephen Toub - MSFT

Exiting out of loops early is a fairly common pattern, one that doesn’t go away when parallelism is introduced.  To help simplify these use cases, the Parallel.For and Parallel.ForEach methods support several mechanisms for breaking out of loops early, each of which has different behaviors and targets different requirements.ExceptionsIn ...

Parallel ExtensionsTask Parallel Library.NET 4
May 26, 2009
0
0

Known Issues in Parallel Extensions to .NET 4.0 Beta1

essey
essey

We’re excited to have the Beta in your hands. (See .NET 4 Beta 1 is now available, with parallelism!) As you use it, please keep in mind the following known issues which we plan to address after Beta1.1. Do not take a dependency on the System.Collections.Concurrent.ConcurrentLinkedList<T> class, because it is being removed.Workaround: U...

May 26, 2009
0
1

Does Parallel.For use one Task per iteration?

Stephen Toub - MSFT
Stephen Toub - MSFT

In .NET 4, the new Parallel class provides For, ForEach, and Invoke methods for performing operations in parallel. One mental model that some folks use when thinking about Parallel.For is that it’s equivalent to running one System.Threading.Tasks.Task per iteration, e.g. that a loop like: Parallel.For(0, N, i => {   &n...

Parallel ExtensionsTask Parallel Library.NET 4
May 22, 2009
0
0

.NET 4 Cancellation Framework

Mike Liddell
Mike Liddell

A very interesting addition to .NET 4 is a set of new types that specifically assist with building cancellation-aware applications and libraries. The new types enable rich scenarios for convenient and safe cancellation, and help simplify situations that used to be be difficult and error-prone and non-composable. The details of the new types are des...

Parallel Extensions.NET 4Coordination Data Structures
May 20, 2009
2
0

Samples for Parallel Programming with the .NET Framework 4

Stephen Toub - MSFT
Stephen Toub - MSFT

Along with the release of the .NET Framework 4 Beta 1, we've just published a slew of samples that demonstrate using Parallel Extensions in a variety of ways.  You can download these from Code Gallery at https://code.msdn.microsoft.com/ParExtSamples.These samples include raytracers, a sudoku game, an image colorization algorithm, solvers for t...

Parallel ExtensionsTask Parallel Library.NET 4
May 20, 2009
0
0

.NET 4 MSDN documentation for parallelism

Stephen Toub - MSFT
Stephen Toub - MSFT

In addition to the Betas of Visual Studio 2010 and the .NET Framework 4 being available for download today, the MSDN documentation for .NET 4 Beta 1 is also available.  This includes quite a bit of useful information about the new parallelism constructs.  Here's a summary of the relevant material, with links: Related to this...

.NET 4Visual Studio 2010
May 20, 2009
0
0

.NET 4 Beta 1 is now available, with parallelism!

Stephen Toub - MSFT
Stephen Toub - MSFT

We’re very excited that the .NET Framework 4 Beta is now available for public download, as .NET 4 has Parallel Extensions built into its core. You can download the Betas for Visual Studio 2010 and .NET Framework 4 at https://msdn.microsoft.com/en-us/netframework/dd582936.aspx.For more information on what’s new in Beta 1 regarding concur...

Parallel Extensions.NET 4
May 16, 2009
0
0

Debugging Support for Tasks

Daniel Moth
Daniel Moth

Visual Studio 2010 has new debugger windows to support the Task-based programming model. Check out my blog post about the Parallel Tasks window.

.NET 4Visual Studio 2010C++