lkml.org 
[lkml]   [1999]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Can't sleep less than 20 ms
Excerpts from internet.computing.linux-kernel: 5-Jul-99 Re: Can't sleep
less than 2.. by =?iso-8859-1?Q?Myr=@sete
> > > "timeout is an upper bound on the amount of time elapsed
> > > before select returns."
> > >
> > > Thus select should return *before* timeout expires. Well, it doesn't
> >
> > sorry, but this way of reading makes no sense! in your reading it would
> > be perfectly fine if select would return immediately, and it would be wrong
> > if returning some usec after timeout.
>
> I think the manual page wording makes perfect sense. The kernel is serving
> the application, and it is in the interest of the application to get a
> guarantee on the upper bound of the timeout. It is of course in the
> interest of the _kernel_, whose task is to sensibly allocate the host's
> resources to all processes, to make the timeout as long as possible (but
> within bounds of the requested timeout.)

Stop argueing about what your personal opinions are and go read POSIX.
Whatever POSIX says is what Linux should do.

Matt
"Would you like some cheese with your wine?"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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