Lab Copy on Write Fork
前置知识
一、原理
- 在xv6原始的eager fork中,执行fork会立刻将parent的所有页拷贝一份给child,但有时child会执行exec,然后丢到所有的拷贝,加载exec中的内容。这种重复的拷贝会浪费时空,因此可以进行copy on write fork。
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment