[lkml]   [1996]   [May]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Sleeping on the job
> > 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
Linux Plug-and-Play Project

 \ /
  Last update: 2005-03-22 13:37    [W:0.031 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site