
21 Aug
2010
21 Aug
'10
10:54 p.m.
On Aug 21, 2010, at 6:45 PM, David M. Cotter wrote:
Unsure about posix, but on Windows anyway, 5k threads is a *LOT*! You are probably running out of kernel handles, paged pool, or process space (each thread will take about 2 megs of stack space unless you change linker options). WHAT???? you MUST be mistaken? two MEGABYTES of stack space for a thread??? that seems totally crazy. are you SURE about that??
Well....on Windows the default stack size is 1 MByte....but you can verify for yourself....http://msdn.microsoft.com/en-us/library/ms686774(VS.85).aspx ;) Ciao, Andreas