Multiprocessing question

Marko Rauhamaa marko at pacujo.net
Mon Jul 14 07:07:49 CEST 2014


Gary Herron <gary.herron at islandtraining.com>:

> On 07/13/2014 04:53 PM, Paul LaFollette wrote:
>> I have thrown together a little C/UNIX program that forks a child
>> process, then proceeds to let the child and parent alternate. Either
>> can run until it pauses itself and wakes the other.
>>
>> [...]
>
> What do you gain from using Python if you eliminate all the tools
> Python provides?

The language core itself.

Anyway, the subprocessing.Popen is perfect for process creation. For
event multiplexing, Python3.4 has the asyncio module, although
multiplexing pipes might be platform-dependent (works in linux at
least).


Marko



More information about the Python-list mailing list