C# offers a variety of ways to create and control threads in our applications. There are the
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
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 ...