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

Simple example without a BackgroundWorker object

We will start this WPF chapter by first creating a single thread version of our CodeBreaking application. This will give us a starting point and show us the limitations of running everything on a single thread. We will then refactor our application to use two threads, and then many threads, to show the improved performance and capabilities.

As mentioned before, we will be doing all of this in a WPF application instead of Windows Forms. This will require us to work with the BackgroundWorker component entirely in code instead of being able to use it at design time.

Tip

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com ...

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