Chapter 10. Parallel Programming Patterns
In this chapter, we will review the common problems that a programmer often faces while trying to implement a parallel workflow. You will learn the following recipes:
- Implementing Lazy-evaluated shared states
- Implementing Parallel Pipeline with
BlockingCollection
- Implementing Parallel Pipeline with TPL DataFlow
- Implementing Map/Reduce with PLINQ
Introduction
Patterns in programming means a concrete and standard solution to a given problem. Usually, programming patterns are the result of people gathering experience, analyzing the common problems, and providing solutions to these problems.
Since parallel programming has existed for quite a long time, there are many different patterns that are used to program parallel ...
Get Multithreading with C# Cookbook - Second 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.