I have a simple question about Linux threads and processes.
The process in Linux has a separate virtual address space which consists of:
- stack
- heap
- bss
- code/text
- data
A process can have multiple threads inside them. I understand that they do share the address space of the process.
However, since the function calls that are executed by different threads can be different, does a thread have a separate stack segment?