lkml.org 
[lkml]   [1999]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

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