Skip to main content

Chapter 7: Parallel processing and PLINQ

In this chapter

  • Focus on CPU-bound work
  • The Parallel class
    • Parallel.ForEach
    • Advanced control: ParallelLoopState
    • Advanced settings: ParallelOptions
    • Parallel.Invoke
    • Do not mix async/await into Parallel.ForEach
    • The solution: Parallel.ForEachAsync (.NET 6+)
  • Introduction to PLINQ
    • Advanced control in PLINQ
    • Things to keep in mind about PLINQ
  • Summary

This chapter is not available in the free preview. Purchase the book to read the complete edition now.

Buy this book