Title :
User level DB: a debugging API for user-level thread libraries
Author :
Pouget, Kevin ; Perache, Marc ; Carribault, Patrick ; Jourdren, Herve
Author_Institution :
DAM, CEA, Arpajon, France
Abstract :
With the advent of the multicore era, parallel programming is becoming ubiquitous. Multithreading is a common approach to benefit from these architectures. Hybrid M:N libraries like MultiProcessor Communication (MPC) or MARCEL reach high performance expressing fine-grain parallelism by mapping M user-level threads onto N kernel-level threads. However, such implementations skew the debuggers´ ability to distinguish one thread from another, because only kernel threads can be handled. SUN MICROSYSTEMS´ THREAD_DB API is an interface between the debugger and the thread library allowing the debugger to inquire for thread semantics details. In this paper we introduce the USER LEVEL DB (ULDB) library, an implementation of the THREAD_DB interface abstracting the common features of user-level thread libraries. ULDB gathers the generic algorithms required to debug threads and provide the thread library with a small and focused interface. We describe the usage of our library with widely-used debuggers (GDB, DBX) and the integration into a user-level thread library (GNUPTH) and two high-performance hybrid libraries (MPC, MARCEL).
Keywords :
application program interfaces; multi-threading; multiprocessing programs; program debugging; API debugging; M user-level threads; MARCEL; N kernel-level threads; Sun Microsystems Thread_DB API; generic algorithms; hybrid M:N libraries; multiprocessor communication; multithreading; parallel programming; user level DB library; Debugging; GDB; MPC; Multithreading;
Conference_Titel :
Parallel & Distributed Processing, Workshops and Phd Forum (IPDPSW), 2010 IEEE International Symposium on
Conference_Location :
Atlanta, GA
Print_ISBN :
978-1-4244-6533-0
DOI :
10.1109/IPDPSW.2010.5470815