Goals of this chapter:
• Discuss the drivers for parallel programming, and how Parallel LINQ fits that story.
• Demonstrate how to turn sequential queries into parallel queries using Parallel LINQ.
• Demonstrate how to create a custom parallel operator.
This chapter introduces Parallel LINQ to Objects. PLINQ introduces data parallelism into LINQ queries, giving a performance boost on multi-core and multiprocessor machines while making the results predictable and correct. This chapter also demonstrates how to build your own parallel operator.
Microsoft has invested heavily in .NET Framework 4 and Visual Studio 2010 to allow all developers to safely and easily embrace parallel ...