Chapter 15: Parallel Programming
In this chapter, you will learn how to take advantage of the multiple CPU cores that are available in today’s modern computers. You will learn how to process your code by distributing the work between processes concurrently, as well as how to use the Task Parallel Library (TPL) and Parallel LINQ (PLINQ) to run code in parallel. Throughout this book, you will learn how to use parallel data structures and use the Visual Studio debugger to diagnose tasks and parallel stacks. You will also learn about the Concurrency Visualizer.
In this chapter, we will cover the following topics:
- Using the Task Parallel Library (TPL): In this section, we will compare parallel and non-parallel code and its effect on CPU core utilization using perfmon.
- Using Parallel LINQ (PLINQ): In this section, we will look at PLINQ and how it can be used to execute LINQ statements with varying degrees of parallelism.
- Programming parallel data structures: In...