Chapter 2: Evolution of Multithreaded Programming in .NET

As .NET and C# have evolved over the last 20 years, new and innovative approaches to multithreaded programming have been introduced. C# has added new language features to support asynchronous programming, and .NET Framework and .NET Core have added new types to support the languages. The most impactful improvements were introduced with C# 5 and .NET Framework 4.0 when Microsoft added the Task Parallel Library (TPL), thread-safe collections, and the async and await keywords.

This chapter will introduce concepts and features that will be explored in greater depth in subsequent chapters. These concepts include the .NET thread pool, asynchronous programming with async and await, concurrent ...

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.