5 ms·
400 threads with a thread stack size of 8M means that 3.2GB of virtual address space needs to be committed, which suspiciously close to the usual limit on a 32
by caf 16y ago
400 threads with a thread stack size of 8M means that 3.2GB of virtual address space needs to be committed, which suspiciously close to the usual limit on a 32 bit system.
If you want to create that many threads, you need to start by severely tuning down the stack size.