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 3. Thread Class – Heavyweight Concurrency in C#

In the previous chapter, we examined the BackgroundWorker component and how to use it to achieve performance gains by multithreading our application. This component is useful but has many limitations. In order to have very precise control over the concurrently running threads in our applications, we can use the Thread class instead.

In this chapter, we will study this class in detail and develop more complex multithreaded applications that take full advantage of the multiprocessing capabilities of today's hardware.

We will use the terms heavyweight concurrency and lightweight concurrency throughout this book. Let's take a minute to reflect on what we mean by this. When we use the Thread class, ...

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