tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: nanosleep() for shorted than schedule slice



On Sun, Jul 02, 2017 at 12:54:52PM +0200, Joerg Sonnenberger wrote:
 > > I wonder if it would make sense for nanosleep(2) to check that requested
 > > sleeping time is shorter than a schedule slice, and if it is, spin the
 > > CPU instead of scheduling another process. Any opinion on this?
 > 
 > No, that's wrong. It's also been discussed before.

How is that wrong? It was always more or less the point of nanosleep.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index