DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

thr_getconcurrency(THREAD)


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(THREAD), thr_create(THREAD), thr_setconcurrency(THREAD)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005