Procedia Computer Science
Multicore processors are now the standard CPU architecture, and multithreaded parallel programs are needed to take full advantage of such CPUs. New tools are needed to help students learn how to design and build such parallel programs. In this paper, we present the thread-safe graphics library (TSGL), a new C++11 library that allows different threads to draw to a shared Canvas, which is updated in approximate real-time. Using TSGL, instructors and students can create visualizations that illustrate multithreaded behavior. We present three multithreaded applications that illustrate the use of TSGL to help students see and understand how an application is using parallelism to speed up its computation.
Adams, Joel C.; Crain, Patrick A.; and Van Der Stel, Mark B., "A thread safe graphics library for visualizing parallelism" (2015). University Faculty Publications and Creative Works. 192.