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


Groups > comp.lang.python > #52268

Python3 Multiprocessing

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <devyncjohnson@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.150
X-Spam-Level *
X-Spam-Evidence '*H*': 0.70; '*S*': 0.00; 'subject:Python3': 0.09; 'command': 0.22; 'header:User-Agent:1': 0.23; 'instance,': 0.24; 'script': 0.25; 'this:': 0.26; 'skip:" 20': 0.27; 'received:10.0.0': 0.31; 'skip:m 30': 0.32; 'created': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'complete.': 0.36; 'possible': 0.36; 'received:10.0': 0.36; 'two': 0.37; 'received:10': 0.37; 'actions': 0.38; 'depends': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'email addr:gmail.com': 0.63; 'kind': 0.63; 'subject:skip:M 10': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=zTjhxceINO3cpT2MaMJu1jncUNE97AlJmu7M3Ga41AM=; b=wIRBogWXIte4OAr45+MsZXIQZ99SXpMmbD0FXch3Be2nEsDP7rTxmtYI19OLdOuXJs JpFpkkjk4LvRXX11iKSvWR29YRHxbqmd1oEIdOuC9/JU/FIW2myOMlsRlQvRrTNjC6dY fsSuSdzjSXj0bV0WMpVdAvdqmj0WQ+oUDVsXO7/PKBsj9MuqLRXs9d6hn091/bnDUxTc qWotB7WuZpIhLxa+XU9r4nSe+6LJ5GMe8AlbIkIvXR49jnvxiPC0RBWO6Cs0O+uiVJYz qxvFG1ltDQ6IbOmVhR3+iSVRXsWhe2uKLnhIMIP8f5FrEXeGXHfOdr3VUNzFWTBsliU6 L6BA==
X-Received by 10.60.52.81 with SMTP id r17mr1659311oeo.3.1376076640580; Fri, 09 Aug 2013 12:30:40 -0700 (PDT)
Date Fri, 09 Aug 2013 15:30:37 -0400
From Devyn Collier Johnson <devyncjohnson@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8
MIME-Version 1.0
To Python Mailing List <python-list@python.org>
Subject Python3 Multiprocessing
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
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.405.1376077011.1251.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1376077011 news.xs4all.nl 15881 [2001:888:2000:d::a6]:43270
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52268

Show key headers only | View raw


Aloha!

    I need a command that will make threads created by 
"multiprocessing.Process()" wait for each other to complete. For 
instance, I want to do something like this:

job1 = multiprocessing.Process(CMD1())
job2 = multiprocessing.Process(CMD2())

jobs1.start(); jobs2.start()

PY_FUNC()

The command "PY_FUNC()" depends on the end result of the actions of 
CMD1() and CMD2(). I need some kind of wait command for the two threads 
that will not let the script continue until job1 and job2 are complete. 
Is this possible in Python3?


Mahalo,

DevynCJohnson@Gmail.com

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


Thread

Python3 Multiprocessing Devyn Collier Johnson <devyncjohnson@gmail.com> - 2013-08-09 15:30 -0400

csiph-web