_EDC_PTHREAD_YIELD_MAX

This environment variable allows a user program to define the max yield (wait) time for a particular thread. It is used to configure the speed at which the pthread_yield() and sched_yield() functions release a processor to enable another thread to run. In some cases, such as in highly-threaded applications, improved performance may result by using this environment variable to reduce the default max wait time.

Value
Description
positive value
An integer value to set the maximum yield time allowable for a pthread to wait. This value represents microseconds (1/1000 of a millisecond).
Note: Values above 32000 (which is the current max default) and values less than or equal to zero will be ignored.
Examples of setting _EDC_PTHREAD_YIELD_MAX: