PREEMPT(9)             NetBSD 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.

NetBSD 6.0.1                     July 3, 2007                     NetBSD 6.0.1

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


©1994 Man-cgi 1.15, Panagiotis Christias <christia@softlab.ntua.gr>
©1996-2014 Modified for NetBSD by Kimmo Suominen