GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PTHREAD_MULTI_NP(3) FreeBSD Library Functions Manual PTHREAD_MULTI_NP(3)

pthread_multi_np, pthread_single_np
switch between multi- and single-threaded scheduling modes

POSIX Threads Library (libpthread, -lpthread)

#include <pthread_np.h>

int
pthread_multi_np(void);

int
pthread_single_np(void);

The pthread_single_np() function switches the process to a single-threaded mode, i.e., suspends all threads except the current. The semantics of this function is similar to pthread_suspend_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).

The pthread_multi_np() and pthread_single_np functions always return 0.

pthread_np(3), pthread_resume_all_np(3), pthread_suspend_all_np(3)

This manual page was written by Alexey Zelkin <phantom@FreeBSD.org>.
October 12, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.