>While we're discussing yield here's a question.
>
>The difference between yield() and sched_yield() is that yield unconditionally
>yields while sched_yield() won't if you are the highest priority process
>and the only process in your run queue.  Does anyone know the
>reuirements on yield() and would it continue to function for us if
>it worked the same as sched_yield()?

AFAIK (not far), yield() is not used, so there are no requirements on it.
It is certainly missing from libc (except as sycall(321)) and undocumented
in FreeBSD.

Another difference is that it correctly counts context switches as voluntary.

Bruce

To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to