The Perils of the Parallel For

added by mikej
10/7/2010 4:07:23 AM


Making parallel code easier to use is an important development but making it easier also means you can use it without realising what you are getting into. Unless we can find a way of making parallel code both easy and safe you are still going to have to take care - even with the easy-to-use Parallel For.


10/7/2010 9:03:21 PM
Even using a higher level library such as the Parallel Task Library included in .NET 4 still requires a human to think about what code *should* be parallelized. The PTL provides implementation constructs (like Parallel.For) to make the actual impelementation easier, but it does still require you to have a basic understanding of how parallel algorithms behave.