How to determine your pthread in Python?

adsheehan at eircom.net adsheehan at eircom.net
Thu Jun 9 09:05:45 EDT 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.

Thanks
Alan




More information about the Python-list mailing list