parallel/concurrent process in python

Minesh Patel minesh at gmail.com
Tue Mar 10 19:51:50 EDT 2009


> os.fork is not cross platform.  It is *nix only.  Subprocess runs on
> Windows also.  The OP never specified his platform.
>

Just out of curiosity, how is one able to replace an os.fork() call
with subprocess and have the child execute multiple statements? I
typically see subprocess used for spawning a shell command, piping,
etc...
-- 
Thanks,
Minesh Patel



More information about the Python-list mailing list