On Sun, 22 Mar 1998, Mattias Kregert wrote:
> Except from Linux, I can find references to sched_yield() in LynxOS,
> DECthreads thread library, AIX 4.1 and up (libc), Solaris (thread.h
> (c)1994 Sun
> Microsystems), Unix98, GNU, C EXECUTIVE(r) and PSX(tm) real time kernels
> ...
> This is just a quick search.
This seems to be part of Posix threads, which means that sched_yield
should only be callable by a thread.... I'm surprised that normal
processes can call sched_yield. In fact, in most of the environments
you've mentioned, it certainly can't be used outside a thread.
Tom