On Jan 30, 1:40 pm, Christian Heimes <li... at cheimes.de> wrote: > May I ask why you want to get the TID? htop shows the TID of each thread. Knowing the TID allows me to know which thread is hogging the CPU. If there is a better way to do this, or there is something fundamentally wrong with this approach, please let me know. Alejandro.