Boost logo

Boost :

Subject: Re: [boost] [thread] throw during new boost::thread() ??
From: Andreas Masur (boost_at_[hidden])
Date: 2010-08-21 18:54:38

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.... ;)

Ciao, Andreas

Boost list run by bdawes at, gregod at, cpdaniel at, john at