This video shows the difference between using one core and four cores in a highly threaded, parallelized application programmed in Visual C# 3.0 (2008). Many people say multicore CPUs are useless. Watching this video you will find out that there is a lot of power in multicore CPUs. Developers must tackle the multicore revolution to exploit multicore CPUs in new applications. A new book from Packt on Threaded Programming that acts as a guide to building scalable, high performance applications using parallel programming with C# has been published. Written by Gastón C. Hillar, C# 2008 and 2005 Threaded Programming: Beginner's Guide will help users develop applications that run several tasks, and manage parallelized processes and threads. For more information visit: http://www.packtpub.com/beginners-guide-for-C-sharp-2008-and-2005-threaded-pr...
The application shown in the video is developed and explained in Chapter 12: Developing a Completely Parallelized Application. This is the chapter's table of contents:
Joining many different parallelized pieces into a complete application
Time for action Creating an opacity effect in an independent thread
Running code out of the UI thread
Time for action Creating a safe method to change the opacity
Blocking the UI—Forbidden with multithreading code
Time for action Creating a class to run a task in an independent thread
Time for action Putting the logic into methods to simplify running tasks
in a pool of threads
Time for action Queuing requests, running threads, and updating the UI
Combining threads with a pool of threads and the UI thread
Time for action Creating a specialized parallel algorithm piece subclass
to run concurrently with the pool of threads
Time for action Creating a specialized parallel algorithm coordination
subclass to run concurrently with the pool of threads
Time for action Overriding methods in the brightness adjustment
coordination subclass
Time for action Starting new threads in a new window
Creating threads inside other threads
Time for action Showing new windows without blocking the user
interface
Multiple windows and one UI thread for all of them
Rationalizing multithreaded code
Summary
For more information visit: http://www.packtpub.com/beginners-guide-for-C-sharp-2008-and-2005-threaded-pr...
For more information about AForge.NET C# imaging library, visit: http://www.aforgenet.com
Hi vladabuba,
Thanks! Of course. The application combines worker threads with a threadpool, and foreground threads with background threads.
The code is available for download from Packt Publishing Website. It is the code for Chapter 12. The link is on the video information, then click on Code download and you'll get the zip with the code of this application ready to run. The book will also help you. :) Cheers, Gastón
gastonhillar2009 2 years ago
Hi vladabuba,
Thanks! Of course. The application combines worker threads with a threadpool, and foreground threads with background threads.
The code is available for download from Packt Publishing Website. It is the code for Chapter 12. The link is on the video information, then click on Code download and you'll get the zip with the code of this application ready to run. The book will also help you. :) Cheers, Gastón
gastonhillar2009 2 years ago
Hi
Nice multithreaded application demonstration. Could you show us code behind this application? Did you created native thread for every thumbnail or you used thread pool? How do you detect how much cores are available in the system and how much worker threads are active in the parallel? Bye
vladabuba 2 years ago