Hi, As far as I know, kernel 2.4.x the only limit on the number of running threads per process is the amount of free RAM/swap. I'm trying to test that whether pthread_create fails only when memory is exhausted. The test machine is RedHat 7.3 with kernel v2.4.18, 256MB RAM and 512MB swap. I hacked glibc to change the macro PTHREAD_THREADS_MAX from 1024 to 16384 and made sure there is no limit from bash, as well as from the kernel (/proc/sys/kernel/pthread-max).
A small test that creates a lot of threads fails exactly at 1531 threads. Trying to create more threads past this figure fails with the error "Interrupted system call" (error number 11). With 1530 threads running, there is ~11MB free RAM and only ~4MB of swap is being used. Did I miss something in the configuration of the machine or environment that limits me? Sincerely Yosi _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
