thr_setconcurrency(3scl)thr_setconcurrency(3scl)NAMEthr_setconcurrency - Sets the requested concurrency level for this
process.
LIBRARY
SCL Threads Library (libthread.so)
SYNOPSIS
#include <thread.h>
int thr_setconcurrency(
int level );
PARAMETERS
Specifies the new requested concurrency level.
DESCRIPTION
This routine sets the concurrency level value for the calling thread's
process.
The concurrency level can be obtained by calling the thr_getconcur‐
rency(3scl) function.
SCL IMPLEMENTATION NOTESthr_setconcurrency(3scl) is implemented by calling pthread_setconcur‐
rency(3).
Because the POSIX threads library on Tru64 UNIX automatically manages
the concurrency of all threads in a multithreaded process, the concur‐
rency value may be ignored by the POSIX thread library. This may result
in different thread scheduling behaviour to that observed on Solaris.
RETURN VALUES
If an error condition occurs, this routine returns an integer value
indicating the type of error.
Additional error return information may be written to the SCL error
log. Refer to scl_error_log(4scl) for details.
Possible return values are as follows: Successful completion. The
value specified by level is negative. The value specified by level
would cause a system resource to be exceeded. Or:
An internal implementation error occurred. Refer to the SCL errorlog
for additional information.
ERRORS
None.
RELATED INFORMATION
Functions: pthread_getconcurrency(3), pthread_setconcurrency(3),
scl_intro(3scl), scl_thread_intro(3scl), thr_getconcurrency(3scl)
Files: scl_error_log(4scl)
Manuals: Solaris Compatibility Libraries User's Guide
thr_setconcurrency(3scl)