Displaying a Thread Name
In complex, multithreaded 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 Processes & Threads view (if Thread Name is selected in the
Group By pane)
In TotalView’s title bar
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.