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 - Analyzing context switches with Process Explorer

When a single robot does a tiny bit of each task, it is multiplexing. This is known as a context switch. They take time, because the robot must switch from one task to another and return to the point where it had left the task. The same happens with the cores and the threads.

Now, we are going to use Process Explorer to analyze context switches in a core:

  1. Run the procexp.exe file. A window with a complete running processes tree list with its icons will appear.
  2. Select View | System Information in the main menu. A window with information similar to the one offered by Windows Task Manager will be shown, but will have complete information.
  3. Check Show one graph per CPU.
  4. Position the mouse ...

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