Premature wakeup of time.sleep()

jepler at unpythonic.net jepler at unpythonic.net
Mon Sep 12 08:42:23 EDT 2005


Is your system running something like ntpd?  I'm not sure how use of
ntp, which will slowly adjust the system's time to match the network
time, will interact with calls to sleep().

This is almost certainly an OS question, though, not a Python question.
Python's time.sleep() is a bit complicated, but on Linux it looks like
it'll favor use of select(2) with a timeout argument.  Perhaps you can
duplicate these results with a pure "C" program and then ask around on a
mailing list or newsgroup about Linux or the specific virtual Linux
server setup you're using.

Jeff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050912/5673ef64/attachment.sig>


More information about the Python-list mailing list