Multithreaded Programming Guide

Exit Print View

Updated: July 2014
 
 

Setting the Thread Concurrency Level

pthread_setconcurrency(3C) is provided for standards compliance. pthread_setconcurrency() is used by an application to inform the system of the application's desired concurrency level. For the threads implementation introduced in the Solaris 9 release, this interface has no effect, all runnable threads are attached to LWPs.

pthread_setconcurrency Syntax

#include <pthread.h>

int pthread_setconcurrency(int new_level);

pthread_setconcurrency Return Values

pthread_setconcurrency() fails if the following conditions occur:

EINVAL

Description: The value specified by new_level is negative.

EAGAIN

Description: The value specified by new_level would cause a system resource to be exceeded.