Get thread pid

Alejandro alejandro.weinstein at gmail.com
Sat Jan 31 14:04:25 EST 2009


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.



More information about the Python-list mailing list