Hello,
apologies for following up to my own reply....
Willem Brown wrote:
Hello,
史绪良 wrote:
hello!!
can you help me??
my program need many thread, they will not exit never. but redhat
linux7.3 - linux8.0 only create 256 thread!! how can I do??
thanks!!
I'm not sure if this is related at all, but what does the output of
"sysctl kernel.threads-max" show? (It is 2041 on both my systems, 7.3
and 8.0)
The man page for pthread_create(3) contains the following line under the
ERROS section.
EAGAIN more than PTHREAD_THREADS_MAX threads are already active.
Search for PTHREAD_THREADS_MAX in the FAQ-threads.html in the
/usr/share/doc/glibc-common-2.2.5 on Red Hat 7.3 and
/usr/share/doc/glibc-common-2.2.93 on Red Hat 8.0. The do mention that
the limit is 1024 though.
I can't help much more than this unfortunately.
I found this in /usr/include/linux/limits.h and was wondering if this
could be the limit you are hitting?
#define OPEN_MAX 256 /* # open files a process may have */
Best Regards
Willem Brown
--
iServe (Pty) Ltd.
http://www.iserve.co.za/
Tel: +27 (0)11 258-7800
Fax: +27 (0)11 258-7888
Cell: +27 (0)83 271-0839
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list