 |
Index for Section 9r |
|
 |
Alphabetical listing for T |
|
 |
Bottom of page |
|
thread_block(9r)
NAME
thread_block - General: Blocks (puts to sleep) the current kernel thread
SYNOPSIS
void thread_block(
void );
ARGUMENTS
None
DESCRIPTION
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.
RETURN VALUES
None
SEE ALSO
Routines: assert_wait_mesg(9r), current_thread(9r)
 |
Index for Section 9r |
|
 |
Alphabetical listing for T |
|
 |
Top of page |
|