21 Nov
2002
21 Nov
'02
2:50 p.m.
Eske Christiansen said:
Hej boost-users.
I'm compiling a test thread program where I create 255 thread but I get an "Program received signal SIGABRT, Aborted." after thread 254 I running redhat 7.3 and using boost 1.28.00. Is it an OS problem or a boost problem?
I find it strange that it stopped at 255 threads. Maximum number of threads in linux is 1024 as defined by PTHREAD_THREADS_MAX in /usr/include/bits/local_lim.h. With default stacksize you would have allocated 500M of virtual memory, but I am not too sure if that would result in thread creation failure.