Chapter 8: Parallel Data Structures and Parallel LINQ
.NET provides many useful features and data constructs for developers who are introducing parallelism to their projects. This chapter will explore these features, including concurrent collections, the SpinLock<T> synchronization primitive, and Parallel LINQ (PLINQ). These features can improve the performance of your applications while maintaining safe threading practices.
Most .NET developers are familiar with LINQ frameworks, including LINQ to Objects, LINQ to SQL, and LINQ to XML. There are even open source .NET LINQ libraries, such as LINQ to Twitter (https://github.com/JoeMayo/LinqToTwitter). We will take those LINQ skills and leverage them in parallel programming with PLINQ. Every LINQ ...
Get Parallel Programming and Concurrency with C# 10 and .NET 6 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.