parallel/concurrent process in python

Minesh Patel minesh at
Wed Mar 11 00:51:50 CET 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,
Minesh Patel

More information about the Python-list mailing list