Python Threads on Linux

Aahz Maruch aahz at panix.com
Tue Jul 31 16:38:13 CEST 2001


In article <d396b814.0107302239.6341a93 at posting.google.com>,
Ronan Viernes <Ronan.Viernes at onsemi.com> wrote:
>
>1. Is it normal for threads on LINUX to have their own process id
>thereby displayed in "ps -ef"? 

Yup.  Linux threads are processes.  Sort of.

>2. How do i exit gracefully from a thread? After exiting the thread,
>is the thread 'process' automatically closed? I noticed in our system
>that after exiting the thread, the 'process' are still present as
>evidenced by the "ps -ef" .

Please post some short code that illustrates this.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"activist for accuracy"  --SJM



More information about the Python-list mailing list