4. Parallel Processing
Writing parallel algorithms is not the same as writing asynchronous algorithms. The challenges are different when working with CPU-bound parallel code. The tools are different, too. While the task asynchronous programming model can be used with parallel CPU algorithms, there are often better choices.
This chapter covers many of the ways you can use different libraries and tools to make parallel programming easier. It’s still not easy, but using better tools correctly makes it easier than it was.
Item 35: Learn How PLINQ Implements Parallel Algorithms
In this item, I wish I could say that parallel programming is now as simple as adding
AsParallel() to all your loops. It’s not, but PLINQ does make it much easier to leverage ...