Re: Can't sleep less than 20 ms

Mathew G Monroe (mmex+@andrew.cmu.edu)
Mon, 5 Jul 1999 11:16:21 -0400 (EDT)


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/