Chapter 28. Parallel LINQ

Parallel LINQ (known as PLINQ and pronounced pee-link) is LINQ to Objects enabled for parallel processing using the features of the Task Parallel Library (TPL). You can learn more about C# parallel programming in Chapter 24, although you don't need to know anything about the TPL in order to use PLINQ.

PLINQ divides up the items in your query data source and processes the resulting chunks of data in parallel. This can deliver a significant performance improvement over regular LINQ queries, although the use of PLINQ is limited to LINQ to Objects; you can't use PLINQ on the data sources such as databases and XML data that are described in the following chapters.

This is a short chapter. PLINQ builds heavily on the LINQ knowledge ...

Get Introducing Visual C# 2010 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.