Do different programs gets their memory from a common heap or from a separate heap?

后端 未结 3 1998
悲哀的现实
悲哀的现实 2021-02-15 03:23

I am a bit confused how glibc on linux allocates its memory to various program.These are the few questions:

  1. Is it been allocated from a common heap(i.e is there

3条回答
  •  日久生厌
    2021-02-15 03:59

    Each process has its own virtual heap. It may, however, share physical RAM, or not, depending on access. See copy-on-write for some more background.

提交回复
热议问题