I found this link:
one quick question about stack of thread and process
I understand why threads have separate stacks, but I read that the process may have two stacks . Why is this? could it be because we count the process stack + the thread stack?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is explained there:
So, if you say, that “One process can have two stacks” is partially true. The process itself does not have any stacks, but its threads have – as many as the number of threads.