pthread_setconcurrency() fails if the following conditions occur:
EINVAL
The value specified by new_level is negative.
EAGAIN
The value specified by new_level would cause a system resource to be exceeded.