Re: [PATCH] hrtimers: Special-case zero length sleeps

Alan Cox
2012-02-16T14:29:52Z

> Userspace clearly has an expectation that sleep(0) is magic in some
> ill-defined way. We'd be well within our rights to break that
> expectation, but I think it's common enough to warrant special casing.

In historical Unix sleep(0) ends up the nearest equivalent it had to
triggering a reschedule and giving up the rest of the timeslice.

I suspect special casing it as yield() isn't far from the right result ?

Alan