A Zoomable Interactive Python Thread Visualization
David M Beazley (http://www.dabeaz.com)
Threads Executing on 1 CPU (OS-X)
The following visualizations show thread scheduling of CPU-bound
threads on a single CPU of a Mac OS-X system (described below).
Observe how threads alternate execution in large blocks
of time. This is good--you want this kind of behavior to
avoid excessive context-switching. If you don't care about OS-X,
view the Linux version of this page.
OS-X, 2 Threads, 1 CPU [ code ]
+
-
Acquired and running
Busy
Retry
OS-X, 4 Threads, 1 CPU [ code ]
+
-
Acquired and running
Busy
Retry
Test Details
Tests were conducted on the following system:
- Python 2.6
- MacPro 2 x 2.66 Ghz Dual-Core Intel Xeon, 3GB 667 Mhz DDR2
FB-DIMM
- OS-X 10.6.2 (Snow Leopard)
- 3 CPU cores were disabled using the Processor
Preference Pane
Take Me To More Visualizations!