lkml.org 
[lkml]   [2002]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: max number of threads on a system
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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:2.287 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site