Recommended number of threads? (in CPython)
Paul Rubin
http
Thu Oct 29 17:56:06 EDT 2009
Neil Hodgson <nyamatongwe+thunder at gmail.com> writes:
> If you are running on a 32-bit environment, it is common to run out
> of address space with many threads. Each thread allocates a stack and
> this allocation may be as large as 10 Megabytes on Linux.
I'm sure it's smaller than that under most circumstances. I run
python programs with hundreds of threads all the time, and they don't
use gigabytes of memory.
More information about the Python-list
mailing list