fork() and wait()
aahz at pythoncraft.com
Wed Oct 16 21:08:47 CEST 2002
In article <Xns92A79ACF1551Fnmoasypcamimswebcom at 22.214.171.124>,
Chuck May <NmOaSyPcAM at imsweb.com> wrote:
>It appears that this code works, but I am concerned about the timing.
>In the main loop, I am concerned that a job would finish before the
>os.wait() call. Does anyone know if there is a "safer" method of
>achieving this goal?
Use twisted to spawn off several child processes, then use a queue of
some kind to feed work to those processes.
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
Project Vote Smart: http://www.vote-smart.org/
More information about the Python-list