pthread_getconcurrency()--Get Process Concurrency Level
Syntax:
#include <pthread.h> int pthread_getconcurrency();Service Program Name: QP0WTCBH
Default Public Authority: *USE
Threadsafe: Yes
Signal Safe: No
The pthread_getconcurrency() function retrieves the current concurrency level for the process. A value of 0 indicates that the threads implementation chooses the concurrency level that best suits the application. A concurrency level greater than zero indicates that the application wishes to inform the system of its desired concurrency level.
The concurrency level is not used by the IBM® i threads implementation. Each user thread is always bound to a kernel thread.
Authorities and Locks
None.
Parameters
None.
Return Value
- value
- pthread_getconcurrency() returns the current concurrency level.
Error Conditions
None.
Related Information
- The <pthread.h> header file. See Header files for Pthread functions.
- pthread_setconcurrency()--Set Process Concurrency Level
API introduced: V4R3
[ Back to top | Pthread APIs | APIs by category ]