O'Reilly logo

C# Multithreaded and Parallel Programming by Rodney Ringler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 10. Parallel LINQ – PLINQ

In this chapter, we will learn about declarative data parallelism using Parallel Language Integrated Query (PLINQ). In Chapter 7, Data Parallelism, we discussed data parallelism using the Parallel library and the Parallel.For and Parallel.ForEach loops. PLINQ is a parallel version of LINQ to Objects. LINQ to Objects allows for LINQ queries on in-memory data collections such as List and DataTable that implement the IEnumerable or IEnumerable<T> interface. Unlike a sequential LINQ, PLINQ tries to use all of the processors in the computer it is running on by dividing the data collections into segments and creating a task to process each segment of the data collection. PLINQ and the Common Language Runtime (CLR)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required