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


Groups > comp.lang.python > #20993

Re: multiprocessing, what am I doing wrong?

Date 2012-02-28 18:12 +0000
From MRAB <python@mrabarnett.plus.com>
Subject Re: multiprocessing, what am I doing wrong?
References (2 earlier) <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>
Newsgroups comp.lang.python
Message-ID <mailman.248.1330452764.3037.python-list@python.org> (permalink)

Show all headers | 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