fork() and wait()

Aahz aahz at pythoncraft.com
Wed Oct 16 15:08:47 EDT 2002


In article <Xns92A79ACF1551Fnmoasypcamimswebcom at 165.112.130.8>,
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.

http://www.twistedmatrix.com/
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Project Vote Smart: http://www.vote-smart.org/



More information about the Python-list mailing list