Do threads and processes both have independent stacks? If the answer is yes, what’s the difference between them?
Thanks in advance!
Do threads and processes both have independent stacks? If the answer is yes, what’s
Share
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.
Processes don’t have a stack. Threads do. A process is typically an address space, some resources and one or more threads. The threads run the actual code of the process so they each have their own stack.
The wiki article on stacks has more information http://en.wikipedia.org/wiki/Call_stack