pthread_multi_np(3)
NAME
- pthread_multi_np, pthread_single_np - switch between multi
- and singlethreaded scheduling modes
LIBRARY
library ``libc_r'' library ``libpthread'' library ``libthr''
SYNOPSIS
#include <pthread_np.h> int pthread_multi_np(void); int pthread_single_np(void);
DESCRIPTION
- The pthread_single_np() function switches the process to a
- singlethreaded mode, i.e., suspends all threads except the cur
- rent. The semantics of this function is similar to pthread_sus
- pend_all_np(3).
- The pthread_multi_np() function switches the process to a
- multi-threaded
mode. The semantics of this function is similar to
pthread_resume_all_np(3).
IMPLEMENTATION NOTES
- The pthread_single_np() function is only available in li
- brary ``libc_r''
and library ``libpthread''. This function is not implement - ed in library
``libthr''.
RETURN VALUES
- The pthread_multi_np() and pthread_single_np functions al
- ways return 0.
SEE ALSO
pthread_resume_all_np(3), pthread_suspend_all_np(3)
AUTHORS
- This manual page was written by Alexey Zelkin <phan
- tom@FreeBSD.org>.
- BSD February 13, 2003