Re: How to make a kernel thread sleep for a short amount of time?

bert hubert (ahu@ds9a.nl)
Thu, 4 Jul 2002 23:36:52 +0200


On Thu, Jul 04, 2002 at 02:22:29PM -0700, Ben Greear wrote:

> I believe the answer may be to use some sort of timer and have my
> thread sleep on this timer, but I cannot find any examples or
> documentation on how to do this on the web.

The only generally available timer is the timer interrupt, sadly, which
ticks once every 10ms (or soon once every ms, according to Linus' bitkeeper
tree) on i386.

At OLS I was told of the existence of 'firm timers':
http://www.cse.ogi.edu/~luca/firm.html

These might have use in the shaping world too.

Regards,

bert hubert

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/