Asynchronous and Parallel Programming
In modern programs, it’s common to need to run code in small chunks to keep user interfaces responsive and to run operations in parallel to reduce latency and take advantage of multicore CPUs. C# and the .NET Framework provide the following support for asynchronous and parallel programming:
- The Task Parallel Library
- C# language support for asynchronous execution (async and await keywords)
- Parallel Linq (PLINQ)
This chapter explores how to use these facilities.
In earlier version of the .NET Framework, there were two ways of doing an asynchronous operation. The first one was used for I/O ...