Subject: Re: Delays in kernel functions?
To: None <brucem@cat.co.za, tech-kern@netbsd.org>
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
List: tech-kern
Date: 10/14/1999 10:41:37
On Thu, Oct 14, 1999 at 10:32:16AM +0200, Bruce Martin wrote:
> What is the correct way of implementing a non-busy wait in a kernel for,
> say, 50ms? Is tsleep the correct function to use, or are there other?

tsleep is ok, as long as you do NOT call it in interupt context. In interupt
context, doing delays other than small microsecond delay() or DELAY() (which is
busy-waiting, essentially) is a no-no.

Regards,
	-is

-- 
 * Progress (n.): The process through which Usenet has evolved from
   smart people in front of dumb terminals to dumb people in front of
   smart terminals.  -- obs@burnout.demon.co.uk (obscurity)