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


Groups > comp.lang.python > #32859

multiprocessing help

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!Xbb.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <scbunn@sbunn.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.012
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'essentially': 0.04; 'exit': 0.07; 'filename:fname piece:py': 0.07; 'subject:help': 0.07; 'spawn': 0.09; 'subject:skip:m 10': 0.09; 'advance': 0.10; 'pep8': 0.16; 'subprocess': 0.16; 'creates': 0.18; 'obviously': 0.18; 'trying': 0.21; 'thanks.': 0.21; 'stephen': 0.22; 'work.': 0.23; 'somebody': 0.23; 'creating': 0.26; 'message- id:@mail.gmail.com': 0.27; "i'm": 0.29; 'helpful': 0.30; 'code': 0.31; 'point': 0.31; 'gets': 0.32; 'anybody': 0.32; 'getting': 0.33; 'strict': 0.33; 'to:addr:python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'done': 0.34; 'thanks': 0.34; 'doing': 0.35; 'sometimes': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'but': 0.36; 'two': 0.37; 'received:209': 0.37; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'here': 0.65; 'life': 0.66; 'content- type:application/octet-stream': 0.67; 'lose': 0.71; 'hoping': 0.72; 'heavy': 0.83; 'spawned': 0.84
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=1zAak5iLjSkbdIuxp0WeYIBsIj+3fleiYGrExQVrElI=; b=JjPkmNQ0UzCANtht7zeupgKyEH+rWgw1QAFXJoBSgmJfFZVhluSRNs/0gVPtUQ1BEa ohYjhz8pPF1ksOZb4lcn5ZJppYiWjpZf1i9H5/TY19qVpWjIKycEqLXBSQW351Cegbfv QP+3QaHI6mnxj+nTBVqhpUBtzMpuTt36wSKH/oTClMRoNU7UtcKxT2iXtznI4RfPFkgE u9T9jxscMc32F/aXfsqQK0gW/At59UcRPZ64aWPJBfbera/gwW+KKqnd3rCHtus2kdkM ZZl0JaJjYHWZ/djgvdMe3jdKpW42DCn5ehJLMhxxS84F925sMtcaPOVNddv5LMpEI9lr bJaw==
MIME-Version 1.0
From Stephen Bunn <scbunn@sbunn.org>
Date Wed, 7 Nov 2012 09:52:35 +0900
Subject multiprocessing help
To python-list@python.org
Content-Type multipart/mixed; boundary=bcaec554db0ed991c204cddd24d9
X-Gm-Message-State ALoCoQlP7MYaBU9IVVr7cKnSOC4UiQbsc/mV5qsw5BCJYhiksb155HdjT3a+NqsY9zMS3GaxcIEj
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3350.1352249604.27098.python-list@python.org> (permalink)
Lines 288
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1352249604 news.xs4all.nl 6847 [2001:888:2000:d::a6]:38751
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:32859

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

I'm looking for some help with multiprocessing.  Essentially what I'm
trying to do is the following:

  1. create a main process that gets daemonized
  2. spawn two subprocess that live for the life of the daemon
  3. each subprocess creates children that do heavy work and exit when
the work is done

I am not having issues with creating the processes but I can't get
them to die.  Sometimes it works and they all die and sometimes they
don't.  Obviously I do not understand the multiprocessing
documentation so I'm hoping that somebody can point out what I'm doing
wrong.

I also understand that my code might be strict adherence to PEP8 and
there might be a number of flaws with the code; all of which would be
helpful to know, but I'm particularly looking for help with getting
what I'm trying to do to work.

I'm starting to lose my mind.. I just want to say all processes that
spawned from here $@%@$% DIE.


Thanks in advance for anybody that has some spare time to point me in
the right direction. I am grateful.  Thanks.

Very Respectfully,
Stephen Bunn
scbunn@sbunn.org

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


Thread

multiprocessing help Stephen Bunn <scbunn@sbunn.org> - 2012-11-07 09:52 +0900

csiph-web