Chapter 28. Performing Parallel Data Access

After completing this chapter, you will be able to:

  • Use PLINQ to parallelize time-consuming LINQ queries.

  • Use the parallel concurrent collection classes to maintain collections of data in a thread-safe manner.

  • Use the parallel synchronization primitives to coordinate access to data being manipulated by concurrent tasks.

In Chapter 27 you saw how to exploit the new features of the .NET Framework to perform operations in parallel. Earlier chapters also showed you how you can access data in a declarative manner by using Language Integrated Query (LINQ). A typical LINQ query generates an enumerable result set, and you can iterate serially through this set to retrieve the data. If the data source used to generate ...

Get Microsoft® Visual C#® 2010 Step by Step 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.