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 i5/OS 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



API introduced: V4R3
Top | Pthread APIs | APIs by category