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 - Creating a specialized parallel algorithm piece subclass to run concurrently with the pool of threads

The application is very attractive, showing high quality thumbnails with a very responsive UI. However, you may want to see the whole image with the brightness adjustment. You can do that when you click on the thumbnail's picture box. Nevertheless, you may still want to have a responsive UI and the best possible performance. To achieve that, you can have the brightness adjustment run using a parallelized algorithm to allow it to use the available cores. It makes sense to do that with huge resolution images.

Note

This is very easy to do using our well-known ParallelAlgorithmPiece and ParallelAlgorithm classes.

First, we are going ...

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