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