xv6-chinese
xv6-chinese copied to clipboard
中文版的 MIT xv6 文档
https://th0ar.gitbooks.io/xv6-chinese/content/ 这里的章节链接全是失效的,考虑修复下?
从“个地址读出机器指令” 改为“从这个地址读出机器指令”
“读操作会一直阻塞直到不可能再有新数据到来了,这就是为什么我们在执行 `wc` 之前要关闭子进程的写端口" 按照原文的 "The fact that read blocks until it is impossible for new data to arrive is one reason that it’s important for the child to close the...
 原文是复制, 看swtch的代码,只是mov并没有pop
引用--“这就是为什么我们在执行 wc 之前要**关闭子进程的写端口**。如果 wc 指向了一个管道的写端口,那么 wc 就永远看不到 eof 了。” 这里看原文是“that it’s important for the child to close the write end of the pipe before executing wc above” 应该是“子进程关闭管道的写端口”,而不是“关闭子进程的写端口”。
在第0章第一段关于`fork()`的代码中 ``` int pid; pid = fork(); if(pid > 0){ printf("parent: child=%d\n", pid); pid = wait(); printf("child %d is done\n", pid); } else if(pid == 0){ printf("child: exiting\n"); exit(); }...
Find a typo in section "I/O 和文件描述符" of chapter0. Here is the code snippet in chapter0, ``` c char *argv[2]; argv[0] = "cat"; ### argv[1] = 0; ... ``` This...
Guys, xv6 has released a new version in 2014, and this documentation should also be updated. I'm planing on doing it recently after a whole lot of exams and projects......
#40
#40