|
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
flags.
> Secondly is there a mechanism to set the stack size while creation?
No. You can use platform-specific APIs to switch stacks after creation
though.
> I read somewhere that the default stack size is 8MB which is heavy for
> my application.
That's platform dependent.
Anthony
-- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk