Get Thread Concurrency

thr_getconcurrency(3T)

Use thr_getconcurrency(3T) to get the current value of the concurrency level previously set by thr_setconcurrency(). Note that the actual number of simultaneously active threads can be larger or smaller than this number.

#include <thread.h>
int thr_getconcurrency(void)

Return Value

thr_getconcurrency() always returns the current value for the desired concurrency level.