Subject: Re: microtime
To: Gary Thorpe <gat7634@hotmail.com>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 08/02/2002 20:01:36
Gary Thorpe wrote:
> I have another time-related question: for very short times one should use 
> DELAY() (or delay()), but when is it "long enough" to use something like 
> tsleep()? When is the overhead enough to justify sleeping instead of polling 
> using delays?

Minimum timeout for tsleep() is one tick, which is 1/HZ seconds. HZ 
is 100 on i386 by default, 1000 e.g. on NetBSD/alpha.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/Ports/i386/ps2.html
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-