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 }
Sounds like a lot to read… I might spin up 100 small tasks each of which will just read one page.
A delightfully parallel reader then, eh?