*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> thread_block (9r)              
Title
Content
Arch
Section
 

thread_block(9r)

Contents


NAME    [Toc]    [Back]

       thread_block - General: Blocks (puts to sleep) the current
       kernel thread

SYNOPSIS    [Toc]    [Back]

       void thread_block(
               void );

ARGUMENTS    [Toc]    [Back]

       None

DESCRIPTION    [Toc]    [Back]

       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    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Routines: assert_wait_mesg(9r), current_thread(9r)



                                                 thread_block(9r)
[ Back ]
 Similar pages
Name OS Title
mpsleep Tru64 General: Blocks the current kernel thread
assert_wait_mesg Tru64 General: Asserts that the current kernel thread is about to block (sleep)
sleep Tru64 General: Puts a calling process to sleep
select_enqueue Tru64 General: Adds the current kernel thread
thread_set_timeout Tru64 General: Sets a timer for the current kernel thread
select_wakeup Tru64 General: Wakes up a kernel thread
unix_release Tru64 General: Releases binding of the kernel thread
current_thread Tru64 General: Is a pointer to the currently running kernel thread
thread_wakeup_one Tru64 General: Wakes up the first kernel thread waiting on a channel
select_dequeue Tru64 General: Removes the last kernel thread waiting for an event
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service