thr_getconcurrency(3thread)


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.

Errors

thr_getconcurrency cannot fail.

References

Intro(3thread), thr_create(3thread), thr_setconcurrency(3thread)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004