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 2. Looking at Multithreaded Classes – BackgroundWorker

C# offers a variety of ways to create and control threads in our applications. There are the Thread and ThreadPool classes, the Task Parallel Library (TPL), the Async methods, and the BackgroundWorker component. The BackgroundWorker is the original way of doing multiple things at once in C# and, to many, it has become passé and Tasks and Threads are now the preferred method. But for simple multithreaded needs, BackgroundWorker is an extremely handy and easy-to-use way to accomplish multiple things at once.

In this chapter, we will study this component in detail, and we will begin developing multithreaded applications that take full advantage of multiprocessing. After reading this and ...

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