Chapter 5. Programming for Parallelism

Within the .NET world, parallel programming is the art of executing the same job on a collection of data or functions by splitting the desired elaboration over all available computational resources.

This chapter will focus on .NET Task Parallel Library's (TPL) implementation of parallel computing, together with the Parallel Language Integrated Query (PLINQ) language.

This chapter will cover the following topics:

  • Parallel programming
  • Task parallelism with TPL
  • Data parallelism with TPL
  • Integrated querying with LINQ
  • Data parallelism with PLINQ

Parallel programming

The goal of any parallel programming is to reduce the whole latency time of the operation by using all the available local resources, in terms of CPU computational ...

Get Learning .NET High-performance Programming 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.