Is there a way for ps (or similar tool) to display the pthread\'s name? I wrote the following simple program:
ps
// th_name.c #include
Show the thread IDs and names of the process with PID 12345:
ps H -o 'tid comm' 12345