Boost logo

Boost :

Subject: Re: [boost] [Thread] Query: Stack Size
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2010-07-28 09:31:20

Alapkumar Sinha <Alapkumar.Sinha_at_[hidden]> writes:

> How can I change the default stack size for each new thread being
> created?

On Windows, set the default stack size with the appropriate linker

> Secondly is there a mechanism to set the stack size while creation?

No. You can use platform-specific APIs to switch stacks after creation

> I read somewhere that the default stack size is 8MB which is heavy for
> my application.

That's platform dependent.


Author of C++ Concurrency in Action
just::thread C++0x thread library   
Just Software Solutions Ltd
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976

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