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

  man pages->OpenBSD man pages -> pthread_yield (3)              
Title
Content
Arch
Section
 

PTHREAD_YIELD(3)

Contents


NAME    [Toc]    [Back]

     pthread_yield - yield control of the current thread

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     void
     pthread_yield(void);

DESCRIPTION    [Toc]    [Back]

     The pthread_yield() function  resets  the  accumulated  time
slice of the
     current  thread  and then enters the thread scheduler, which
resumes execution
 of the next thread ready to run.  If no other thread is
ready to
     run, control returns to the current thread.

SEE ALSO    [Toc]    [Back]

      
      
     pthreads(3)

STANDARDS    [Toc]    [Back]

     pthread_yield()  is a non-portable (but quite common) extension to IEEE
     Std 1003.1-2001 (``POSIX'').

OpenBSD     3.6                        January      15,      2004
[ Back ]
 Similar pages
Name OS Title
sched_yield Tru64 Signals scheduler a willingness to yield to another thread
pthread_setspecific Tru64 Sets the thread-specific data value associated with the specified key for the current thread
thread_exit FreeBSD abandon current thread context
glccontext IRIX make a context current to a thread
mpsleep Tru64 General: Blocks the current kernel thread
tt_thread_session_set HP-UX set the default session identifier for the current thread
select_enqueue Tru64 General: Adds the current kernel thread
thread_set_timeout Tru64 General: Sets a timer for the current kernel thread
assert_wait_mesg Tru64 General: Asserts that the current kernel thread is about to block (sleep)
pthread_yield_np Tru64 Notifies the scheduler that the current thread is willing to release its processor to other threads ...
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service