|
thread_block(9r)
Contents
|
thread_block - General: Blocks (puts to sleep) the current
kernel thread
void thread_block(
void );
None
The thread_block routine blocks (puts to sleep) the current
kernel thread and selects the next kernel thread to
start (run). The routine schedules the next kernel thread
onto this CPU.
When a kernel thread is waiting for an event, it should
block. In general, a kernel thread is blocked when the
thread wait bit in the thread structure pointer associated
with the current kernel thread is set. This bit signifies
that this kernel thread is on the appropriate wait hash
queue, waiting for a wakeup call. This allows the CPU to
execute another kernel thread while this kernel thread is
blocked.
None
Routines: assert_wait_mesg(9r), current_thread(9r)
thread_block(9r)
[ Back ] |