Python Threads on Linux

Andrew Kuchling akuchlin at mems-exchange.org
Tue Jul 31 11:04:27 EDT 2001


Ronan.Viernes at onsemi.com (Ronan Viernes) writes:
> 1. Is it normal for threads on LINUX to have their own process id
> thereby displayed in "ps -ef"? In AIX/HP, this is not the case right?

Correct; Linux threads have different PIDs because of how the kernel
treats them.  The fork() system call which creates a new process is
essentially a special case of the clone() system call that creates a
new thread, but that distinction doesn't matter to a Python
programmer.

--amk



More information about the Python-list mailing list