
Alapkumar Sinha <Alapkumar.Sinha@lntinfotech.com> 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