exec(threads)
Steve Holden
sholden at holdenweb.com
Mon Oct 7 07:39:01 EDT 2002
"JS" <scjuonline at web.de> wrote ...
> could someone explain how threads are implemented in Python?
> Following program gives me 5 new processes on Linux. (ps)
> Windows and Solaris don't create new processes.
[code omitted]
Threads are created using the underlying mechanism of the host OS, which is
why you see processes in Linux but not on the other two platforms.
If your program works, I wouldn't worry too much about the representation in
theprocess list, since that's just an artefact of the OS's thread
implementation.
regards
-----------------------------------------------------------------------
Steve Holden http://www.holdenweb.com/
Python Web Programming http://pydish.holdenweb.com/pwp/
Previous .sig file retired to www.homeforoldsigs.com
-----------------------------------------------------------------------
More information about the Python-list
mailing list