How the memory is mapped when fork is used?

前端 未结 3 429
眼角桃花
眼角桃花 2021-01-18 20:03

i am new to \"fork()\",I read everywhere that when a fork() is called an exact copy of current (calling) process is started.Now when I run following code ,there should be tw

3条回答
  •  無奈伤痛
    2021-01-18 20:11

    Addresses are process-local. 804a01c in one process is not the same as 804a01c in another process.

提交回复
热议问题