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

Working with multiple BackgroundWorker components

We can work with many BackgroundWorker components in order to run many concurrent threads. Usually, we will use the Thread class to run many threads at once, but the BackgroundWorker class provides us an easy way to do this as well. As we learned in the previous chapter, the performance results will depend upon the number of cores or processors available in the computer in which we run the application and how busy each core is with other threads of execution.

Using the real algorithms, the process of breaking the four Unicode characters code is very intensive and requires more time than expected. Breaking the code must take the minimum time possible. So far, we have been using multithreading to ...

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