Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Dec 2002 14:28:22 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        stijn@win.tue.nl
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: [nephtes@openface.ca: [Xmame] Use of usleep() with -sleepidle]
Message-ID:  <20021202.142822.66274273.imp@bsdimp.com>
In-Reply-To: <20021202151816.GJ83264@pcwin002.win.tue.nl>
References:  <20021202151816.GJ83264@pcwin002.win.tue.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
usleep will sleep until the next tick if you give is a value < 1
tick.  The default HZ setting on FreeBSD is 100, giving you a tick of
10ms.  I'm not sure why you are seeing it sleep for 2 ticks instead of
one, however.

Try building a kernel with an HZ of 1000 and see what happens.

Warner

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021202.142822.66274273.imp>