Thread killing - I know I know!
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Mon May 19 20:16:51 EDT 2008
En Mon, 19 May 2008 20:07:06 -0300, Paul Rubin
<"http://phr.cx"@NOSPAM.invalid> escribió:
> blaine <frikker at gmail.com> writes:
>> How is it that you recommend killing a pure python thread?
Make the thread cooperate. It should periodically check some variable or
condition, and cleanly exit when requested.
>> And also,
>> when i use the 'threading' module am I creating a process, or a (gasp)
>> thread?
>
> A thread.
>
>> (Is this an obvious question - and if so, how does one create
>> a 'process'?)
>
> os.fork()
A more portable answer: using the subprocess module.
--
Gabriel Genellina
More information about the Python-list
mailing list