From owner-freebsd-current Sun Jan 31 02:57:12 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA09943 for freebsd-current-outgoing; Sun, 31 Jan 1999 02:57:12 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.26.10.9]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA09930 for ; Sun, 31 Jan 1999 02:57:09 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id VAA08719; Sun, 31 Jan 1999 21:57:07 +1100 Date: Sun, 31 Jan 1999 21:57:07 +1100 From: Bruce Evans Message-Id: <199901311057.VAA08719@godzilla.zeta.org.au> To: current@FreeBSD.ORG, dufault@hda.com Subject: Re: more about yield() versus sched_yield() Cc: bde@zeta.org.au Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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