Re: Premature wakeup of time.sleep()



Bengt Richter wrote:
On Mon, 12 Sep 2005 19:33:07 -0400, Peter Hansen <peter@xxxxxxxxxxx> wrote:


Steve Horsley wrote:

I think the sleep times are quantised to the granularity of the system clock, shich varies from os to os. From memory, windows 95 has a 55mS timer, NT is less (19mS?), Linux and solaris 1mS. All this is from

For the record, the correct value for NT/XP family is about 15.6 ms (possibly exactly 64 per second and thus 15.625ms, but offhand I don't recall, though I'm sure Google does).



What "correct value" are you referring to? The clock chip interrupts, clock chip resolution, or OS scheduling/dispatching?

The resolution of the call to time.time(), basically.

For NT4 at least, I don't know of anything near 15.6 ms ;-)

Apparently my belief that XP was the same as NT is incorrect then. The value is definitely correct for XP (on my machine anyway ;-) ).


-Peter
.



Relevant Pages

  • Re: Time is going very much off all the time
    ... cumulative so eventually the clock will loose more and more time. ... used during running linux after startup. ... That was the timeer interrupt on DOS. ... That has nothing to do with the rtc. ...
    (alt.os.linux.suse)
  • Re: Clock drift problems
    ... I know almost nothing about Linux, ... the real-time clock has gotten 7 hours slow. ... ]that there are applications that would wig out if the clock all of the ... ]we're doing backups", but to start with, I'd just like to know if I ...
    (comp.os.linux.misc)
  • Re: D3 & Linux time does not match
    ... Updates the hardware real-time clock, ... to be adjusted manually when daylight savings goes into effect. ... I have no idea how this is happening but I'm guessing the Linux clock ... No AIX, & no virtual machine. ...
    (comp.databases.pick)
  • Re: Clock drift problems
    ... I know almost nothing about Linux, ... the real-time clock has gotten 7 hours slow. ... and setting up ntpd to autostart - probably ... >claim it's nothing to do with Linux, that it would happen with Windows ...
    (comp.os.linux.misc)
  • CLOCK_TICK_RATE for slowing down the system clock?
    ... the Linux kernel. ... The idea is to slow down 10 times the clock maintained by the Linux ... running 10 times slower. ...
    (Linux-Kernel)