Displaying a Thread Name
In complex, multi-threaded programs with perhaps thousands of threads, it may be useful to name certain threads, for instance, if particular threads are dedicated to performing special functions. This can be helpful when sorting or identifying threads in your programs.
If you set a thread name in your program, the name is displayed in the TotalView UI:
*In the Root Window (if Thread Name is selected in the Group By sidebar)
*In the Process Window’s thread status bar
*In the Threads Pane Tab
To display a thread name in the TotalView UI, first set the name in your program using the pthread_setname_np() method.
For example:
int rc = pthread_setname_np(thread, "MyThreadName");
Unless explicitly set by the program, threads are not named.
 
RELATED TOPICS 
 
TV::thread properties
TV::thread in the TotalView Reference Guide
Thread names displayed in the UI
dstatus options relating to thread names
dstatus in the TotalView Reference Guide