Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74415

Re: Multiprocessing question

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 <marko@pacujo.net>
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> (permalink)
References <CA+dsdf0iwt_Z9iDoFTUu8XD6m70onQ3Gb2BoDDU_fjY9qF=gmA@mail.gmail.com> <mailman.11792.1405297006.18130.python-list@python.org>
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

Show key headers only | View raw


Gary Herron <gary.herron@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Multiprocessing question Gary Herron <gary.herron@islandtraining.com> - 2014-07-13 17:07 -0700
  Re: Multiprocessing question Marko Rauhamaa <marko@pacujo.net> - 2014-07-14 08:07 +0300

csiph-web