-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
481 lines (215 loc) · 21.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
<!DOCTYPE HTML>
<html lang="" >
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>序言 · GitBook</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link rel="stylesheet" href="gitbook/style.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-intopic-toc/style.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-search-pro/search.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-theme-comscore/test.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="introduction.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter active" data-level="1.1" data-path="./">
<a href="./">
序言
</a>
</li>
<li class="chapter " data-level="1.2" data-path="introduction.html">
<a href="introduction.html">
introduction
</a>
</li>
<li class="chapter " data-level="1.3" data-path="preparation.html">
<a href="preparation.html">
准备工作
</a>
</li>
<li class="chapter " data-level="1.4" >
<span>
JOS
</span>
<ul class="articles">
<li class="chapter " data-level="1.4.1" data-path="lab1-Booting a PC.html">
<a href="lab1-Booting a PC.html">
Lab1: Booting a PC
</a>
</li>
<li class="chapter " data-level="1.4.2" data-path="lab2-Memory Management.html">
<a href="lab2-Memory Management.html">
Lab2: Memory Management
</a>
</li>
<li class="chapter " data-level="1.4.3" data-path="Lab3-User Environments.html">
<a href="Lab3-User Environments.html">
Lab3: User Environments
</a>
</li>
<li class="chapter " data-level="1.4.4" data-path="lab4-Preemptive Multitasking.html">
<a href="lab4-Preemptive Multitasking.html">
Lab4: Preemptive Multitasking
</a>
</li>
<li class="chapter " data-level="1.4.5" data-path="lab5-File system, Spawn and Shell.html">
<a href="lab5-File system, Spawn and Shell.html">
Lab5: File system, Spawn and Shell
</a>
</li>
<li class="chapter " data-level="1.4.6" data-path="lab6-Network Driver.html">
<a href="lab6-Network Driver.html">
Lab6: Network Driver
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.5" >
<span>
xv6
</span>
<ul class="articles">
<li class="chapter " data-level="1.5.1" data-path="hw-boot xv6.html">
<a href="hw-boot xv6.html">
boot xv6
</a>
</li>
<li class="chapter " data-level="1.5.2" data-path="hw-syscall.html">
<a href="hw-syscall.html">
syscall
</a>
</li>
<li class="chapter " data-level="1.5.3" data-path="hw-alarmtest.html">
<a href="hw-alarmtest.html">
alarmtest
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="." >序言</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h1 id="【操作系统最佳实践】mit-6828-jos与nju-ics-nemu源码精读">【操作系统最佳实践】MIT 6.828 JOS与NJU ICS NEMU源码精读</h1>
<p>怕太长不看系列:</p>
<p><a href="http://knowledgehive.github.io/6.828/" target="_blank">我做的MIT 6.828课程笔记</a></p>
<p>如果觉得有帮助的话请star一波吧~</p>
<p>如果有错误欢迎指正PR,有任何问题欢迎提问。</p>
<hr>
<p>在选择计算机专业的时候,哪一个男孩没有过做游戏的梦想?</p>
<p>下面gif是NJU NEMU运行的《仙剑奇侠传》游戏。</p>
<p><img src="readme/pal.gif" alt=""></p>
<p>虽然距离真正的游戏制作还非常的遥远,但令人兴奋的是,如果我们完整的学习整个系统,我们掌握到的技术远比游戏开发技术更加的广泛和深刻。</p>
<p>俗话说,理科生/工科生更能接近这个世界运作的真相。那么,作为一个程序员,如何去理解一个软件世界的本质呢?</p>
<p>所以,我来安利大家学习操作系统了。</p>
<hr>
<h2 id="mit-6828-jos">MIT 6.828 JOS</h2>
<p>首先需要安利的课程就是MIT 6.828这门课程操作系统课程。</p>
<p>我们学习的材料是2018年的,这门课主要围绕着JOS和xv6系统进行展开,但是最主要核心系统是JOS。</p>
<p><a href="https://pdos.csail.mit.edu/6.828/2018/labguide.html" target="_blank">MIT 6.828 2018课程主页</a></p>
<p><a href="http://knowledgehive.github.io/6.828/" target="_blank">我做的MIT 6.828课程笔记</a></p>
<p>强烈推荐完整的学习完整门课程的内容!</p>
<p>JOS实验部分一个有六个大的实验,每一个实验部分都由若干个小的话题组成,大家可以选择性的查看:</p>
<p><a href="https://knowledgehive.github.io/6.828/lab1-Booting%20a%20PC.html" target="_blank">Lab 1: Booting a PC</a></p>
<p><a href="https://knowledgehive.github.io/6.828/lab2-Memory%20Management.html" target="_blank">Lab2: Memory Management</a></p>
<p><a href="https://knowledgehive.github.io/6.828/Lab3-User%20Environments.html" target="_blank">Lab3: User Environments</a></p>
<p><a href="https://knowledgehive.github.io/6.828/lab4-Preemptive%20Multitasking.html" target="_blank">Lab 4: Preemptive Multitasking</a></p>
<p><a href="https://knowledgehive.github.io/6.828/lab5-File%20system,%20Spawn%20and%20Shell.html" target="_blank">Lab 5: File system, Spawn and Shell</a></p>
<p><a href="https://knowledgehive.github.io/6.828/lab6-Network%20Driver.html" target="_blank">Lab 6: Network Driver</a></p>
<h2 id="nju-ics-nemu">NJU ICS NEMU</h2>
<p>另外一个值得一读的系统就是南京大学计算机导论的课程里面涉及到的NEMU模拟器。这个模拟器是QEMU的最小系统,麻雀虽小,五脏俱全,对于我们去学习一些现代操作系统里面的内容是非常充实的。</p>
<p>不仅于此,NJU ICS的主讲老师<a href="https://www.zhihu.com/people/jiang-yan-yan-75" target="_blank">蒋炎岩</a>是位非常宝藏的老师,乐于分享自己的一些科研内容和世界观。</p>
<p>其中NJU ICS课程不仅有非常详尽的<a href="https://nju-projectn.github.io/ics-pa-gitbook/ics2019/" target="_blank">课程文档</a>,该文档读起来简直就像是游戏攻略一般过瘾,还有非常宝藏老师的<a href="https://www.bilibili.com/video/BV1qa4y1j7xk" target="_blank">开源课程视频</a>。</p>
<p>如果能够仔细的完成里面的PA,那么能够讲原来枯燥的操作系统知识通过代码进行学习,还能去理解一开始放上的《仙剑奇侠传》游戏运行的本质。</p>
<h2 id="现代操作系统——原理与实现">现代操作系统——原理与实现</h2>
<p>最近有淘到一本好书:上交大陈海波老师的《现代操作系统——原理与实现》。</p>
<p><img src="readme/cover.jpg" alt=""></p>
<p>我们特别的将里面的目录拿出来,将JOS和NEMU的内容放入其中:</p>
<p><img src="readme/arch.png" alt=""></p>
<p>有一个惊人的发现,那就是由大名鼎鼎的操作系统专家陈海波写的这本书与MIT 6.828 JOS的结构惊人的相似。后来我查到,陈海波老师当年在读博期间完成了6.828的学习,并且通过JOS这样的一个系统的基础之上完成了一个新的系统,并因此收获OSDI操作系统顶会文章录用。</p>
<p>实际上这本书里面的chCore就是在JOS的基础之上进行的,实验内容也是惊奇的一致。</p>
<p>这就是我为什么安利大家可以去学习JOS和NEMU这两个系统了。倘若能够仔细的读通这两个系统的代码,在计算机软件基础知识这一块,基本上能够战胜绝大多数的程序员了吧。</p>
<hr>
<p>最后再推荐一波资料:</p>
<p><a href="http://knowledgehive.github.io/6.828/" target="_blank">我做的MIT 6.828课程笔记</a></p>
<p> <a href="https://zhuanlan.zhihu.com/p/266871840" target="_blank">世界上最牛气的操作系统教材是什么?——蒋炎岩</a></p>
<p><a href="https://ipads.se.sjtu.edu.cn/courses/os/schedule.shtml" target="_blank">上海交通大学操作系统课程,与MIT6.828强相关</a></p>
<p><a href="https://ipads.se.sjtu.edu.cn/mospi/#" target="_blank">现代操作系统:原理与实现</a></p>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="introduction.html" class="navigation navigation-next navigation-unique" aria-label="Next page: introduction">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"序言","level":"1.1","depth":1,"next":{"title":"introduction","level":"1.2","depth":1,"path":"introduction.md","ref":"introduction.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["callouts@git+https://github.com/Simran-B/gitbook-plugin-callouts.git","intopic-toc","theme-comscore","-lunr","-search","search-pro","github","splitter","-sharing","mathjax-pro"],"pluginsConfig":{"callouts":{"showTypeInHeader":true},"github":{"url":"https://github.com/KnowledgeHive/ddia"},"intopic-toc":{"isCollapsed":false,"isScrollspyActive":true,"label":{"de":"导航","en":"导航","ch":"导航"},"maxDepth":6,"mode":"nested","selector":".markdown-section h1, .markdown-section h2, .markdown-section h3, .markdown-section h4, .markdown-section h5, .markdown-section h6","visible":true},"splitter":{},"search-pro":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"theme-comscore":{},"mathjax-pro":{"forceSVG":false,"version":"2.7.7"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2021-02-21T03:17:52.625Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-02-21T03:30:06.713Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
<script src="gitbook/gitbook.js"></script>
<script src="gitbook/theme.js"></script>
<script src="gitbook/gitbook-plugin-intopic-toc/anchor.min.js"></script>
<script src="gitbook/gitbook-plugin-intopic-toc/gumshoe.polyfills.min.js"></script>
<script src="gitbook/gitbook-plugin-intopic-toc/plugin.js"></script>
<script src="gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
<script src="gitbook/gitbook-plugin-search-pro/search.js"></script>
<script src="gitbook/gitbook-plugin-github/plugin.js"></script>
<script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script src="gitbook/gitbook-plugin-mathjax-pro/plugin.js"></script>
<script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
<script src="gitbook/gitbook-plugin-theme-comscore/test.js"></script>
</body>
</html>