O'Reilly logo

C# Multithreaded and Parallel Programming by Rodney Ringler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Lightweight Concurrency – Task Parallel Library (TPL)

In .NET 4.0, Microsoft delivered what is called the Task Parallel Library (TPL) and answered users' concerns by developing multithreaded applications. TPL allows developers to focus on the functionality that they are trying to implement and not get bogged down with managing multiple threads, the threadpool, and the number of processing cores available to them.

So far, we have covered the BackgroundWorker component and the Thread class to show ways to accomplish multithreaded functionality in a C#/.NET application. These two ways to perform multithreaded functionality have been around since the very early stages of .NET. The Thread class was introduced in Version 1.1 of .NET and the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required