Threading the Python interpreter
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Mon Feb 18 21:43:18 EST 2008
En Mon, 18 Feb 2008 22:47:40 -0200, MooJoo <flossy at bobbsey_twins.com>
escribió:
> I've read that the Python interpreter is not thread-safe but are there
> any issues in creating threads that create new processes (not threads)
> that run new instantiations of python? What I'm doing is subclassing the
> threading.Thread and, in the run method, I'm making a call to os.system,
> passing to it another python script which then processes a file. When
You don't want multiple threads, you just want concurrent processes. Use
the subprocess module instead. You get the same results with much less
work.
--
Gabriel Genellina
More information about the Python-list
mailing list