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: 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 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: <4F46A49D.9030905@mrabarnett.plus.com> <4F47D89A.4080806@mrabarnett.plus.com> <4F4C3E22.5010103@mrabarnett.plus.com> In-Reply-To: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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.