Die Suche ergab 3 Treffer

von Joan
Montag 13. Februar 2006, 16:27
Forum: Allgemeine Fragen
Thema: Thread Dump of a python process
Antworten: 5
Zugriffe: 982

Thank you for your answers. What I wanna do it could be easy if I could know which pid represents each thread. When I run my python process it has a PID, for example 11341. Now I can go to the /proc/11341 folder and I can show all the threads of this process in the task folder, for example I can sho...
von Joan
Freitag 10. Februar 2006, 12:49
Forum: Allgemeine Fragen
Thema: Thread Dump of a python process
Antworten: 5
Zugriffe: 982

Thank you for your info. Now I have read that a simple call os.getpid() returned the linux identifier of the thread in latest python versions, but I'm using Python 2.3 and 2.4 and this call returns always the same id :( :(
I only want to take the pid of the thread but isn't as easier as it seems.
von Joan
Donnerstag 9. Februar 2006, 12:10
Forum: Allgemeine Fragen
Thema: Thread Dump of a python process
Antworten: 5
Zugriffe: 982

Thread Dump of a python process

Hi, Excuse me but I don't undestand deutsch language... and not very well english too :? I would to know if there're some way to have a dump of all the threads started by a python process. I want to see the TID corresponding of each thread because I need them to get the CPU time of each thread by th...