2022/07/xv6_lab6_record/index #9
Replies: 2 comments 4 replies
-
|
大佬你好,想问下,fork完父子进程都指向一片物理内存(原父进程的),当父进程要往内存写数据,此时父进程复制到一片新的物理内存再写入数据;那么此时子进程写入数据是写入【原父进程物理内存】 还是【再开辟一个新的物理内存,这样原父进程物理内存计数为0,就释放掉了】?请问是哪种情况呀 |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
佬你的代码好像跑不了?我做了小修改之后,运行usertests会显示panic:walk |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
2022/07/xv6_lab6_record/index
upd@2022/9/14:最近把实验的代码放到 github 上了,如果需要参考可以查看这里: https://github.com/ttzytt/xv6-riscv 里面不同的分支就是不同的实验。 Lab6: Copy-on-Write Fork for xv6 这个 lab 的描述属实
https://ttzytt.com/2022/07/xv6_lab6_record/index.html
Beta Was this translation helpful? Give feedback.
All reactions