thread_set_timeout(9r)thread_set_timeout(9r)NAME
thread_set_timeout - General: Sets a timer for the current kernel thread
SYNOPSIS
void thread_set_timeout(
int timeout_interval );
ARGUMENTS
Specfies the amount of time to wait for an event. The time is used in conjunction with the assert_wait routine.
DESCRIPTION
The thread_set_timeout routine must be called as follows: Lock the resource. Call assert_wait_mesg to assert that the current kernel
thread is about to block. Unlock the resource. Call thread_set_timeout to set the time of delay for the current kernel thread. Call
thread_block to block (put to sleep) the current kernel thread.
The time you specify to wait for the event is automatically canceled when the kernel thread awakes.
RETURN VALUES
None
SEE ALSO
Routines: assert_wait_mesg(9r), current_thread(9r), thread_block(9r)thread_set_timeout(9r)
Check Out this Related Man Page
thread_halt_self(9r)thread_halt_self(9r)NAME
thread_halt_self - General: Handles asynchronous traps for self-terminating kernel threads
SYNOPSIS
void thread_halt_self(
void );
ARGUMENTS
None
DESCRIPTION
The thread_halt_self routine performs the work associated with a variety of asynchronous traps (ASTs) for a kernel thread that terminates
itself. A kernel thread terminates itself (or one kernel thread terminates another kernel thread) by calling the thread_terminate routine.
The thread_halt_self routine examines the AST-related member of the thread structure pointer associated with the kernel thread that wants
to terminate itself. This thread structure pointer was returned in a previous call to kernel_isrthread or kernel_thread_w_arg and passed by
you to the thread_terminate routine. This AST-related member is set to a bit that identifies the specific AST trap associated with this
kernel thread. Based on the AST bit set in this member, thread_halt_self does the appropriate cleanup work before the kernel thread exits
from the kernel.
NOTES
A kernel thread that terminates itself must call thread_halt_self immediately after the call to thread_terminate. The reason for this is
that thread_terminate only prepares the self-terminating kernel thread to stop execution. The thread_halt_self routine completes the work
needed to stop execution of the self-terminating kernel thread by performing the appropriate cleanup work.
RETURN VALUES
None
SEE ALSO
Routines: thread_terminate(9r)thread_halt_self(9r)
Hi Folks,
Today hasn't been the best one of my career in IT.
I've been a contractor for a major utility company for a number of years, on a number of seperate IT contracts mostly Unix. The company had 10 different flavours of unix and multiple different varsions of most of them.
At the... (3 Replies)