Query: thread_halt_self
OS: osf1
Section: 9r
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
thread_halt_self(9r) thread_halt_self(9r)NAMEthread_halt_self - General: Handles asynchronous traps for self-terminating kernel threadsSYNOPSISvoid thread_halt_self( void );ARGUMENTSNoneDESCRIPTIONThe 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.NOTESA 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 VALUESNoneSEE ALSORoutines: thread_terminate(9r) thread_halt_self(9r)
Related Man Pages |
---|
pthread_exit(3) - debian |
pthread_detach(3t) - hpux |
pthread_join(3) - osf1 |
kernel_isrthread(9r) - osf1 |
thread_terminate(9r) - osf1 |
Similar Topics in the Unix Linux Community |
---|
other forums.. |
why does my program runs in conflicting mode? |
Some simple question abt Unix kernel |
Relation between kernel & weblogic thread |
Slow looping |