Where are the stacks for the other threads located in a process virtual address space?

后端 未结 2 561
南笙
南笙 2020-12-10 04:55

The following image shows where the sections of a process are laid out in the process\'s virtual address space (in Linux):

You can see that there is only on

2条回答
  •  鱼传尺愫
    2020-12-10 05:32

    As far as I can remember, the space devoted to process stack is divided into smaller portion, each one used by a given thread. There are also some guard pages in between to prevent accidental smashing. And yes, stacks are one below others...

提交回复
热议问题