Thread interruption

Aahz Maruch aahz at panix.com
Wed Jan 24 13:12:40 EST 2001


In article <XCtb6.9449$CP4.2365402 at typhoon2.ba-dsg.net>,
David Allen <s2mdalle at titan.vcu.edu> wrote:
>
>On a completely unrelated note, I thought python threading was done
>within one process, and that the threading code had to deal with
>"timeslicing" between all the threads that actually belonged to one
>process.  But checking the output of 'ps' on running a threaded python
>program, actually 4-5 instances of the interpreter seem to be running
>when I'm using threads.  What gives?

I see Donn answered most of your question.  For this one, my
understanding is that Linux implements threads as multiple processes
sharing the same memory space.  So threads do show up in ps.
-- 
                      --- Aahz (Copyright 2001 by aahz at pobox.com)

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

'I'm not in the mood to say "yes" today.' --SJM



More information about the Python-list mailing list