thr_getconcurrency --
retrieve the level of concurrency
Synopsis
cc [options] -Kthread file
#include <thread.h>
int thr_getconcurrency(void);
Description
thr_getconcurrency returns the level, or degree, of concurrency,
which is the number of lightweight processes (LWPs)
the user has requested to be available
for running multiplexed threads.
This is the number from the most recent thr_setconcurrency call
(or zero if there has been no call)
plus the number of threads created with the THR_INCR_CONC flag set
since the last call to thr_setconcurrency.
The return value does not reflect the number of LWPs actually
available.
Return values
thr_getconcurrency returns the degree of concurrency
as described.