Patterns for Parallel Programming: Understanding and Applying Parallel Patterns with the .NET Framework 4

by Doug Finke on November 9, 2009

in .NET 4.0,C# 4.0,Parallel Computing,Parallel.For

Here is a 120 page whitepaper by Stephen Toub. The first part steps you through implementing your own parallel looping construct, different variations on static partitioning, the static  Parallel class and what the Parallel.For set includes:

  • Exception handling
  • Breaking out of a loop early
  • Long ranges
  • Thread-local state
  • Configuration options
  • Nested parallelism
  • Dynamic thread counts
  • Efficient load balancing

This is followed by another hundred pages of good info.

{ 2 comments… read them below or add one }

Daniel Chait 11.09.09 at 9:18 pm

Sounds like a lot to read… I might spin up 100 small tasks each of which will just read one page.

Jason Dolinger 11.20.09 at 9:46 am

A delightfully parallel reader then, eh?

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>