codingenious
codingenious

Reputation: 8653

Change stack size at runtime

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

Answers (1)

Yaroslav Yermilov
Yaroslav Yermilov

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

Related Questions