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

Exploring other examples

Try adding another BackgroundWorker to show a message box telling the user the process has finished, or disabling the Stop button and enabling the Start button, when the four BackgroundWorker components complete their work. You can use the IsBusy() function.

You can use the Process Explorer to view the running threads for the example and monitor its activities. You can download and install Process Explorer from http://download.cnet.com/Process-Explorer/3000-2094_4-10223605.html, if you do not already have it loaded. This is a very handy utility and will allow you to really dissect what is happening with the different threads in your application. The following is a sample of Process Explorer running alongside our CodeBreaker ...

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