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....http://msdn.microsoft.com/en-us/library/ms686774(VS.85).aspx ;)

Ciao, Andreas


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk