O'Reilly logo

C# 2008 and 2005 Threaded Programming: Beginner's Guide by Gastón C. Hillar

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

Time for action - Running the stars counter in many concurrent threads

The NASA scientists showed you a single-threaded application recognizing the probable old stars and changing their pixels to pure blue. It took nearly an hour to complete the algorithm with a very huge infrared bitmap portrait. However, they have a server with 128 cores available. They think you can improve the performance using your multithreading skills. Of course you can! Let's work on a solution to improve this poor performance.

Now, we are going to create the UI and make some changes to create multiple threads dynamically to process each portion of a bitmap. In order to accomplish this, we must share data between the various threads, as we learned in the previous chapters: ...

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