Chapter 16. Parallelism and Asynchronous Processing

The expressiveness of Microsoft Language Integrated Query (LINQ) can be useful when approaching complex problems, such as parallelizing operations and processing events asynchronously. Because a LINQ expression is a declarative form that describes what the result should be, and not how it should be obtained, you can delegate the implementation of the algorithm to the underlying runtime. This is exactly what you do using LINQ to Objects when querying in-memory structures. Microsoft .NET Framework 4 integrates Parallel LINQ (PLINQ), which can scale out former LINQ to Objects operations over multiple cores, using the parallelism features offered by the Task Parallel Library, also part of .NET Framework ...

Get Programming Microsoft® LINQ in Microsoft .NET Framework 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.