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


Groups > comp.lang.python > #20993

Re: multiprocessing, what am I doing wrong?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python@mrabarnett.plus.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'method,': 0.05; 'from:addr:python': 0.09; 'rounded': 0.09; '0.001': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'received:84.92': 0.16; 'received:84.92.122': 0.16; 'received:84.92.122.60': 0.16; 'reply- to:addr:python-list': 0.16; 'subject:wrong': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.22; 'suggests': 0.23; 'seconds': 0.26; 'all,': 0.27; 'fine.': 0.29; 'sleep': 0.30; 'subject:?': 0.31; 'header:User-Agent:1': 0.33; 'eric': 0.34; 'received:84': 0.34; 'reply-to:addr:python.org': 0.34; 'problem.': 0.35; 'to:addr :python-list': 0.35; 'beginning': 0.36; 'subject:skip:m 10': 0.37; 'run': 0.37; 'couple': 0.38; 'to:addr:python.org': 0.40; 'units': 0.64; 'header:Reply-To:1': 0.70; 'reply-to:no real name:2**0': 0.72; 'hundred': 0.74
X-CM-Score 0.00
X-CNFS-Analysis v=2.0 cv=ZvRv2qHG c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=qePWxsfFzlIA:10 a=FVV0ur5EMoUA:10 a=OUOv7kDek9cA:10 a=8nJEP1OIZ-IA:10 a=8zd7nYf63UCTer1zMU8A:9 a=wPNLvfGTeEIA:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117
X-AUTH mrabarnett:2500
Date Tue, 28 Feb 2012 18:12:36 +0000
From MRAB <python@mrabarnett.plus.com>
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2
MIME-Version 1.0
To python-list@python.org
Subject Re: multiprocessing, what am I doing wrong?
References <CAAoZyYMHv=JCZ-PE4ufuuKmcR5Y3rZNNkDz24kv4uJdframKdA@mail.gmail.com> <4F46A49D.9030905@mrabarnett.plus.com> <CAAoZyYM43CjGuTKS9T65dPuSGjU-JrPNR9H2yC5K2z8RoVM=ew@mail.gmail.com> <4F47D89A.4080806@mrabarnett.plus.com> <CAAoZyYOr9bqLV3xVs-GK+Pqth6F1XzdTOtBG15EicxrdC7nFdg@mail.gmail.com> <4F4C3E22.5010103@mrabarnett.plus.com> <CAAoZyYNhGj0LnEOrK4yu6HHy6+s=tkxmq_7vtf0VnzuZptKMNA@mail.gmail.com>
In-Reply-To <CAAoZyYNhGj0LnEOrK4yu6HHy6+s=tkxmq_7vtf0VnzuZptKMNA@mail.gmail.com>
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.12
Precedence list
Reply-To python-list@python.org
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.248.1330452764.3037.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1330452764 news.xs4all.nl 6917 [2001:888:2000:d::a6]:48287
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:20993

Show key headers only | View raw


On 28/02/2012 17:16, Eric Frederich wrote:
> If I do a time.sleep(0.001) right at the beginning of the run() method,
> then it completes fine.
> I was able to run it through a couple hundred times without problem.
> If I sleep for less time than that or not at all, it may or may not
> complete.
>
[snip]

To me that suggests that the OS works in units of 1 millisecond, so a
sleep of less than 0.001 seconds is rounded to 0 milliseconds.

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


Thread

Re: multiprocessing, what am I doing wrong? MRAB <python@mrabarnett.plus.com> - 2012-02-28 18:12 +0000

csiph-web