Messages in this thread | | | Subject | Re: Sleeping on the job | Date | Fri, 17 May 1996 00:27:48 -0400 (EDT) | From | "Andrew E. Mileski" <> |
| |
> > I need to do some delays in kernel code. > > - each delay is under 3ms (max delay time is not critical) > > - interrupts are enabled > > - it could be several seconds before the kernel code returns to user space > > As I understand it, this could be a problem(?) as it stays in the > > kernel for so long. > > > > What is the best way to handle this (do I need to worry about it)? > > Currently I'm just ignoring the fact that the delays can be long; it > > doesn't cause me any trouble, but I'm on a single user/CPU system. > > there's no mechanism to sleep for less than a scheduler quantum; > that's 10 ms in normal x86 linux.
Ya, I know that. But do I need to worry about delays that are over 10ms (possibly a few seconds) in kernel code? If so, what and how should I handle it?
-- Andrew E. Mileski mailto:aem@ott.hookup.net http://www.redhat.com/~aem/ Linux Plug-and-Play Project http://www.redhat.com/pnp/
| |