#include <pthread.h> int pthread_getconcurrency(void);
pthread_setconcurrency() 関数が以前に呼び出されていない場合は、 pthread_getconcurrency() は 0 を返します。