Messages in this thread | | | Date | Tue, 21 Dec 1999 10:43:54 -0600 | From | Ron Flory <> | Subject | Re: Sleep-Slowdown |
| |
Tim Waugh wrote: > > On Tue, 21 Dec 1999, Jan-Friso Evers wrote: > > > It surely does not make sense to call sleep(0), but in that case, it > > would be nice to return emmediatly. > > It is silly to optimise sleep for speed! Also, there are programs out > there that expect sleep(0) to behave like sched_yield().
yes, sleep(0) is probably the most common way to yield your process or thread in most OS's (including RTOS's). This is normal and expected behavior.
ron
- 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/
| |