O'Reilly logo

Introducing Visual C# 2010 by Adam Freeman

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 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 ...

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