Actually, the command given "ps axH" uses H which shows threads as if they were processes. If you check the pid of these "processes," you would find that they are all equivalent.<br>
<br><br><div class="gmail_quote">On Fri, Jan 30, 2009 at 9:56 AM, Alejandro <span dir="ltr"><<a href="mailto:alejandro.weinstein@gmail.com">alejandro.weinstein@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Jan 30, 4:00 am, Ove Svensson <<a href="mailto:ove.svens...@jeppesen.com">ove.svens...@jeppesen.com</a>> wrote:<br>
> Pidis a process identifier. Threads are not processes. All your threads<br>
<div class="Ih2E3d">> execute within the context if a single process, hence they should have<br>
</div>> the samepid. Threads may have athreadid but it is not the same as thepid.<br>
<br>
According to this document (<a href="http://heather.cs.ucdavis.edu/%7Ematloff/Python/PyThreads.pdf" target="_blank">http://heather.cs.ucdavis.edu/~matloff/<br>
Python/PyThreads.pdf</a>), at least in Linux, threads are process:<br>
<br>
"Here each thread really is a process, and for example will show up on<br>
Unix systems when one runs the appropriate ps process-list command,<br>
say ps axH. The threads manager is then the OS."<br>
<br>
If you look at my original post, pstree does show different PIDs for<br>
the threads.<br>
<br>
Regards,<br>
<font color="#888888">Alejandro.<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>