Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Multiprocessing question Date: Mon, 14 Jul 2014 08:07:49 +0300 Organization: A noiseless patient Spider Lines: 21 Message-ID: <87sim45xzu.fsf@elektro.pacujo.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="4493"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SvicZKeBw10YNIpbV0LVy" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:JFZIiEXcA+lL6h02QzWJQ3Cgugo= sha1:8anzZS4ISOfHxtuKg0RkHqshz6A= Xref: csiph.com comp.lang.python:74415 Gary Herron : > 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