Do threads and processes both have independent stacks? If the answer is yes, what's the difference between them? Thanks in advance!
+6
A:
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
Brian Rasmussen
2010-01-25 11:18:58