antivain 发表于 2013-01-20 20:03

关于子程序的地址空间问题

今天看到Maurice J.Bach 《The design of the unix operating system》,其中讲fork系统调用时一句话:

When a process invokes fork, the kernel duplicates the address space of the old process, allowing processes to share regions when possible and making a physical copy otherwise.

是不是如果用sharing region的话,parent process的地址空间内的内容将被暂时替代为child process的内容(text,data,stack)?而后当child 返回时又重新写入parent的内容?
谢谢。

antivain 发表于 2013-01-20 20:13

回复 1# antivain


收帖了。。。已解决


   
页: [1]
查看完整版本: 关于子程序的地址空间问题