How to determine your pthread in Python?

adsheehan at adsheehan at
Thu Jun 9 15:05:45 CEST 2005

Does anyone know how to determine the pthread or native thread
identifier while in Python ?

FYI I have a multi-threaded C++ app on Solaris that embeds the Python
interpreter. While in the interpreter I need to determine its actual
running thread id.

FYI2 The python interpreter is not firing off extra threads via the
python threading classes etc.


More information about the Python-list mailing list