Skip to content

Commit 65b13d3

Browse files
Merge remote-tracking branch 'refs/remotes/origin/master'
2 parents e55cff0 + 982b78d commit 65b13d3

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

lec7/p1-process-overview.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,10 @@ Shell: Process 2 exited with code 0
395395

396396
- 创建时关闭所有在子进程里的文件描述符
397397
- ``CreateProcess(filename, CLOSE_FD)``
398+
- 避免冲突、保护资源
398399
- 创建时改变子进程的环境
399400
- ``CreateProcess(filename, CLOSE_FD, new_envp)``
401+
- 创建运行环境、隔离
400402

401403
---
402404

@@ -483,12 +485,12 @@ int pid = fork(); // 创建子进程
483485
if (pid == 0) { // 子进程在这里继续
484486
exec_status = exec(“calc”, argc, argv0, argv1, …);
485487
printf(“Why would I execute?”);
486-
} else { // 父进程在这里继续
488+
} else if (pid > 0) { // 父进程在这里继续
487489
printf(“Whose your daddy?”);
488490
489491
child_status = wait(pid);
490-
}
491-
if (pid < 0) { /* error occurred */
492+
} else {
493+
{ /* error occurred */ // (pid < 0)
492494
```
493495
494496

lec8/p3-linux-O1-sched.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ backgroundColor: white
5757

5858
* O(n) 调度器:内核版本 2.4-2.6
5959
* O(1) 调度器:内核版本 2.6.0-2.6.22
60-
* CFS 调度器:内核版本 2.6.23(2007)-6.5
61-
* EEVDF 调度器:内核版本 6.6(2023)-现在
62-
60+
* CFS 调度器:内核版本 2.6.23(2007)-6.5(2023)
61+
* EEVDF调度器:内核版本 6.6(2023)-现在
62+
EEVDF(Earliest Eligible Virtual Deadline First)
6363
![w:500px](figs/linux-schedulers.png)
6464

6565
<!--

lec8/p4-linux-cfs-sched.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,4 +349,4 @@ signed char d = b - 250;
349349
* [rCore](https://learningos.github.io/rCore-Tutorial-Guide-2023A/chapter5/4exercise.html)
350350
* [uCore](https://learningos.github.io/uCore-Tutorial-Guide-2023A/chapter5/4exercise.html)
351351
* 实验提交要求
352-
* 布置实验任务后的第13天(11月10日24点);
352+
* 布置实验任务后的第13天; <!--(11月10日24点);-->

lec9/p1-fsoverview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ close(fd);
412412
}
413413
</style>
414414
415-
<div class="container">g
415+
<div class="container">
416416
417417
<div class="col">
418418
@@ -440,7 +440,7 @@ close(fd);
440440
- 删除文件
441441
- 列目录
442442
- 重命名文件
443-
- 重命名文件
443+
444444
445445
![bg right 90%](figs/fs-tree.png)
446446

lec9/p3-fsjournal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ backgroundColor: white
275275

276276
##### 超级块检查
277277

278-
检查超级块是否合理,主要是进行健全性检查
278+
检查超级块检查是否合理,主要是进行健全性检查
279279
* 确保文件系统大小大于分配的块数
280280
* 找到超级块的**内容不合理(冲突)**,系统(或管理员)可以决定使用超级块的**备用副本**
281281

0 commit comments

Comments
 (0)