Chapter 7. Using PLINQ

In this chapter, we will review different parallel programming paradigms, such as task and data parallelism, and cover the basics of data parallelism and parallel LINQ queries. You will learn the following recipes:

  • Using the Parallel class
  • Parallelizing a LINQ query
  • Tweaking the parameters of a PLINQ query
  • Handling exceptions in a PLINQ query
  • Managing data partitioning in a PLINQ query
  • Creating a custom aggregator for a PLINQ query

Introduction

In .NET Framework, there is a subset of libraries that is called Parallel Framework, often referred to as Parallel Framework Extensions (PFX), which was the name of the very first version of these libraries. Parallel Framework was released with .NET Framework 4.0 and consists of three major ...

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.