O'Reilly logo

Programming Microsoft® LINQ in Microsoft .NET Framework 4 by Paolo Pialorsi and Marco Russo

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

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