yield(9) netbsd man page | unix.com

Man Page: yield

Operating Environment: netbsd

Section: 9

PREEMPT(9)						   BSD Kernel Developer's Manual						PREEMPT(9)

NAME
preempt, yield -- general preempt and yield functions
SYNOPSIS
#include <sys/sched.h> void preempt(void); #include <sys/proc.h> void yield(void);
DESCRIPTION
The preempt() function puts the current LWP back on the system run queue and performs an involuntary context switch. The yield() function is mostly same as preempt(), except that it performs a voluntary context switch. These functions drop the kernel lock before switching and re-acquire it before returning.
BSD
July 3, 2007 BSD
Related Man Pages
critical_exit(9) - debian
csf(9) - netbsd
timeslice(5) - hpux
critical_enter(9) - freebsd
critical_enter(9) - linux
Similar Topics in the Unix Linux Community
Yield Prolog: 1.0.3 Released
Puzzle: file name grepped from text file yields &quot;no such file&quot;
awk output yields error: awk:can't open job_name (Autosys)
Cp via NFS vs. scp yields unexpected difference
Simple conditional yields too many responses