Why Virtual Memory Address is the same in different process?

后端 未结 3 608
广开言路
广开言路 2020-12-11 07:55

\"http://i.stack.imgur.com/RGMsz.png\"

I know the virtual memory separates 2G(for kernel)/2G(for user) in Windo

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 08:26

    Are you confusing physical addresses and virtual addresses? It's ok for two processes to access the same virtual address, because each process see its own virtual memory space. On the other hand, all processes share the same physical memory space in the machine, so each process will have that same virtual address mapped to a different physical address (assuming there is no shared memory).

提交回复
热议问题