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 ...
Get More Effective C# (Includes Content Update Program): 50 Specific Ways to Improve Your C#, 2nd edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.