FreeBSD 7.0 manual page repository

FreeBSD is a free computer operating system based on BSD UNIX originally. Many IT companies, like DeployIS is using it to provide an up-to-date, stable operating system.

thread_exit - abandon current thread context

 

NAME

      thread_exit - abandon current thread context
 

SYNOPSIS

      #include <sys/param.h>
      #include <sys/proc.h>
 
      void
      thread_exit(void);
 

DESCRIPTION

      The thread_exit() function implements the machine independent prelude to
      a thread shutdown.  It will not return, and will result in a call to
      mi_switch(9) to schedule some other thread.
 
      thread_exit() arranges to free all the resources of the thread, specifiā€
      cally the kernel stack.
 
      To protect the runqueue(9), thread_exit() must be called with the
      sched_lock mutex held.
      mi_switch(9), mutex(9), runqueue(9), sleep(9)
 

Sections

Based on BSD UNIX
FreeBSD is an advanced operating system for x86 compatible (including Pentium and Athlon), amd64 compatible (including Opteron, Athlon64, and EM64T), UltraSPARC, IA-64, PC-98 and ARM architectures. It is derived from BSD, the version of UNIX developed at the University of California, Berkeley. It is developed and maintained by a large team of individuals. Additional platforms are in various stages of development.