Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jan 1999 05:22:03 -0500 (EST)
From:      Peter Dufault <dufault@hda.com>
To:        current@FreeBSD.ORG
Cc:        bde@zeta.org.au
Subject:   more about yield() versus sched_yield()
Message-ID:  <199901311022.FAA21322@hda.hda.com>

index | next in thread | raw e-mail

> I've got a synch_yield() in kern_synch and a call into it from yield()
> in kern_thread that duplicates the yield() behavior for the non-RTPRIO,
> non-sched_yield() condition.  synch_yield() also KASSERTS
> that p == curproc since nothing else makes sense.

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()?

Peter

-- 
Peter Dufault (dufault@hda.com)   Realtime development, Machine control,
HD Associates, Inc.               Safety critical systems, Agency approval

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


help

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