Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Dec 1999 14:46:20 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        jasone@FreeBSD.ORG
Cc:        mi@aldan.algebra.com, freebsd-bugs@FreeBSD.ORG
Subject:   Re: kern/13644
Message-ID:  <Pine.BSF.4.10.9912281440540.9333-100000@alphplex.bde.org>
In-Reply-To: <19991227204603.A28DF14BB7@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 27 Dec 1999 jasone@FreeBSD.ORG wrote:

> Synopsis: select(2) timer inaccurate, especially with -pthread

> This is not a bug; it is an artifact of correct implementation.  If you
> need higher resolution, use nanosleep().

nanosleep() has the same resolution as select() and setitimer(), etc.
All of the are implemented using the scheduling clock, so their minimum
possible resulution is 1/HZ seconds and their actual resulution is 2/HZ
seconds due to implementation shortcuts.  The only supported way to get
a higher resolution is to increase HZ.

Bruce



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912281440540.9333-100000>