Reputation: 8653
Can I change stack size at runtime for a particular thread?
Explanation : Can I have a situation where one thread stack has size say, 64kb and another say, 128kb? And further, Can this be achieved at runtime?
Upvotes: 2
Views: 162
Reputation: 96
You can't change stack size for already created threads, but you can configure stack size for newly created thread - there is special constructor for it.
But be aware that such manipulations are considered to be platform dependent and that's why should be used as rarely as possible.
Upvotes: 3