Re: max number of threads on a system

Peter Wächtler (
Mon, 25 Mar 2002 10:10:49 +0100

Bill Davidsen wrote:

> On Fri, 22 Mar 2002, James Bourne wrote:
>>One thing to note here, using pthreads there is a limit of 1024
>>threads per process. There are patches to glibc to increase this
>>to a larger number (4096 or 8192).
> Haven't checked to see the limit in NGPT, but I haven't hit it ;-)

There is another limit creeping in: pthread mmap()s 2 MB
of stack for each thread. So you run out of address space
on 32 bit systems with threads > 1024 (and smaller)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at