Do threads and processes both have independent stacks? If the answer is yes, what's the difference between them? Thanks in advance!
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With