Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 1999 21:57:07 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        current@FreeBSD.ORG, dufault@hda.com
Cc:        bde@zeta.org.au
Subject:   Re: more about yield() versus sched_yield()
Message-ID:  <199901311057.VAA08719@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>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 majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901311057.VAA08719>