suggestion on a complicated inter-process communication

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Tue Apr 28 23:14:05 EDT 2009


In message <95ac6b26-46f2-4b28-b9a3-3aa02b754357 at v1g2000prd.googlegroups.com>, Way wrote:

> -> denotes create
> 
> 
> MainProcess -> Process1 -> Process3 (from os.system)
>                    |
>                     -> Process2 (from os.system) -> Process4 (from os.system) ->Process5

If MainProcess were to create two pairs of pipes with os.pipe, will they
successfully be passed down to all the child processes? If so, set the input
end of one pair so Process1 will read from it, and the output end of the
other pair so Process3 will write to it. Process5, which presumably is under
your control, can write to the output end of the first pair, and read from
the input end of the second pair.




More information about the Python-list mailing list