28 Jul
2003
28 Jul
'03
06:56
Hi, I want to find out the maximum number of threads allowed on my machine. I repeatedly created a thread in a loop, and the result of running this small program is: thread 0 created. ... ... pthread_create error on thread 255, error code = 11 Does this error code indicate that the maximum number of threads has been reached? How can I increase this maximum number? Does it involve ulimit? Or perhaps I need to modify the _POSIX_THREAD_THREADS_MAX and PTHREAD_THREADS_MAX definitions in /usr/include/bits/local_lim.h? Currently, they're 64 and 16384 respectively. -- -- Verdi March --