maximum number of threads
Jeremy Sanders
jeremy+complangpython at jeremysanders.net
Wed Jan 10 11:13:12 EST 2007
Jean-Paul Calderone wrote:
> Indeed you are correct. The actual limit you are hitting is the size
> of your address space. Each thread is allocated 8MB of stack. 382
> threads consumes about 3GB of address space. Even though most of this
> memory isn't actually allocated, the address space is still used up. So,
> when you try to create the 383rd thread, the kernel can't find anyplace
> to put its stack. So you can't create it.
Interesting. That's why I can get over 3000 on my x86-64 machine... Much
more address space.
--
Jeremy Sanders
http://www.jeremysanders.net/
More information about the Python-list
mailing list