👤
Home Man
Search
Today's Posts
Register

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:
Select Section of Man Page:
Select Man Page Repository:

NetBSD 6.1.5 - man page for yield (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


All times are GMT -4. The time now is 08:33 AM.

Unix & Linux Forums Content CopyrightŠ1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password