Giter Club home page Giter Club logo

xv6-chinese's Introduction

xv6 中文文档

== update 02/25/2016

== 2014 版的 xv6 (rev8) 相关文档正在翻译中,详见 rev8 分支。

xv6 是 MIT 开发的一个教学用的完整的类 Unix 操作系统,并且在 MIT 的操作系统课程 6.828 中使用。通过阅读并理解 xv6 的代码,可以清楚地了解操作系统中众多核心的概念,对操作系统感兴趣的同学十分推荐一读!这份文档是中文翻译的 MIT xv6 文档,是阅读代码过程中非常好的参考资料。

原文在此

文中引用的 xv6 源代码

强烈推荐 xv6 源代码同本书一同阅读!原作和翻译中遇到的括号内的数字,都是指上面链接中文件的源代码行号。

同时,我们的翻译文档也可以通过 gitbook 阅读

译者

  • 鲜染 北京大学 信息科学技术学院 计算机系
  • 赵天雨 北京大学 信息科学技术学院 计算机系
  • 胡树伟 北京大学 信息科学技术学院 计算机系(I guess)
  • 胡文涛 KAUST CS
  • 曹扬 上海交通大学 电子信息与电气工程学院 计算机系
  • 安润功 **人民大学

如果你愿意贡献,你的名字也会出现在这里!

翻译状况

章节 初稿 审校 二审
封面 + + +
前言 + + +
+ + +
+ + +
+ +
+ +
+ +
+ +
+ + +
附A + + +
附B + + +

参与审校

热情欢迎大家参与到审校工作中!请访问 https://github.com/Th0ar/xv6-chinese

  1. Fork
  2. 审校并修改,保证修改后 markdown 解析正确
  3. 发送 Pull Request
  4. 等待你的名字(不久后)出现在译者列表中!

许可证(License)

文档中涉及到的 xv6 源代码使用 MIT 许可证。中文翻译使用 GNU GPL V3.0 许可证,在 GNU GPL V3.0 之上,转载和引用须注明本项目 Github 地址。


xv6 Documentation in Chinese

xv6 is a Unix-like teaching OS developed by MIT, and is being used in MIT's OS class 6.828. By using and understanding xv6's source code, you can grasp core concepts in OS design, thus it's very recommended for those who have strong interest in OS. This documentation is the Chinese translation of xv6 documentation, it is a good reference when reading the source code.

This is MIT's version of the documentation

Source code referred in the documentation

xv6-chinese's People

Contributors

arg123654789 avatar bensenq avatar changkaiyan avatar clpsz avatar delphifirst avatar exprosic avatar ly0 avatar monkey2000 avatar mytbk avatar ninerec avatar pjhades avatar qvjp avatar ranxian avatar wangconglin87 avatar youggls avatar yuanlink avatar zhaoting avatar ziyunli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xv6-chinese's Issues

2014 edition of xv6

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... Now I have been in CMU, I really enjoy the time I spent on translating the documentation - it lets me understand OS core stuff quite a bit. Now it is a great oppurtunity for everybody and me to refresh our OS knowledge by updating this translation, hope you also enjoy reading it or contributing to it.

If anyone is willing to join the translation work, please keep an eye on this issue. I will post a schedule and rough plan later on.

Thanks all who read, recommended, and of course, contributed to xv6-chinese

Ran

代码原文

请问该手册中提到的代码具体是哪个版本呀?可以明确一下对应的是哪个仓库下的代码的哪次commit吗?看PDF版本的代码还是没有直接看代码方便。

pdf

有没有专门用于打印的pdf

PDF字体不统一

pdf中微软雅黑和楷体混合,字体大小不一,阅读时很影响观感。

第0章管道里有错误

引用--“这就是为什么我们在执行 wc 之前要关闭子进程的写端口。如果 wc 指向了一个管道的写端口,那么 wc 就永远看不到 eof 了。”

这里看原文是“that it’s important for the child to close the write end of the pipe before executing wc above”

应该是“子进程关闭管道的写端口”,而不是“关闭子进程的写端口”。

Typo in chapter0

Find a typo in section "I/O 和文件描述符" of chapter0.

Here is the code snippet in chapter0,

char *argv[2];
argv[0] = "cat";
### argv[1] = 0;
...

This is original code in book (reviewed rev7, rev8 and rev9),

char *argv[2];
argv[0] = "cat";
argv[1] = 0;
...

gitbook用的似乎是日文字库,有些字很奇怪

前两年用过一次这个项目链接指向的gitbook,很感谢。不过那边的字库好像是日文的,有些字的显示很奇怪。当时我室友转换成epub改用中文字库解决了这个问题,不过当时忘了反馈,现在我也忘记了当时怎么转换的了,就反馈一下问题吧,如果项目维护者看到的话能修复这个问题最好了。

翻译错误

代码:汇编陷入处理程序那节
“Tvinit (3076) 在 main 中被调用”
原文是"Tvinit(3067)"

停止更新了吗?

对了下2020年的XV6 book 好多段落都没有。是原书改动了很多了吗

第0章 管道

“读操作会一直阻塞直到不可能再有新数据到来了,这就是为什么我们在执行 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 write end of the pipe before executing wc above: if one of wc’s file descriptors referred to the write end of the pipe, wc would never see end-of-file. "
应该改为"这就是为什么我们在执行"wc"之前要关闭管道的写端口。"这样不会出现理解错误。

基于的版本?

和最新的 2011.9.7的版本好像有些区别,20110907的版本加了一些东西
没事了…最新版的已经删掉那一段了。

License?

感谢译者们的工作。

粗略看了一下翻译的很棒,而且还有二审三审。

想询问一下,如果标明出处的话可以转载去其它地方吗?

不会全文转载,只会截取一些章节中的一段或者一节

审校 chapter3

chapter 3 审校完成后所有的章节都被审过一遍了!

需要注意:

  1. 代码要用 `` 包住
  2. 图片上下要换行
  3. 审校完在最后署名和留下时间
  4. 修改 README 的对应表项

关于第0章中代码的疑问。

在第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();
} else {
    printf("fork error\n");
}

按照此代码写出的程序,运行结果为

parent: child=3610
child: exiting
child -1 is done

将其中的 wait() 修改为 wait(NULL)后,结果正确。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.