> From the man sched_yield:
>
> A process can relinquish the processor voluntarily without blocking by
> calling sched_yield(). The process will then be moved to the end of the
> queue for its static priority and a new process gets to run.
>
> and also IEEE/Open Group:
>
http://www.opengroup.org/onlinepubs/000095399/functions/sched_yield.html
>
>
>>> pthread_mutex_lock(&mutex);
>>> th = pthread_self();
>>> if (pthread_equal(th,last_th)) {
>>> pthread_mutex_unlock(&mutex);
>>> sched_yield();
>>> continue;
>>>
>
> Here with SCHED_OTHER sched_yield for the first 100-200 times does nothing.
> Should the man be updated?
>