'Could threads shares stack(like heap)?
I'm not sure about whether threads could share their stack space with each other.
And I think this question could be spilled in following parts:
Why every thread has its own stack?
Could thread has no stack?
Or what will happen if threads share the same stack?
I'm confused with this question ... and I have searched some keywords but still no thought.
And I think stack and heap were managed by os, so maybe the reason why os choose to make thread stack private could explain this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
