From d2ed906250b4186235a5162b66705e32ae17c846 Mon Sep 17 00:00:00 2001 From: mgt Date: Mon, 3 Jan 2022 16:31:30 +0800 Subject: [PATCH] docs: fix lab3 lab3_challenge1 output --- chapter5_process.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chapter5_process.md b/chapter5_process.md index 7ec229b..cc769c3 100644 --- a/chapter5_process.md +++ b/chapter5_process.md @@ -1052,22 +1052,20 @@ will fork a child from parent 0. in alloc_proc. user frame 0x0000000087fae000, user stack 0x000000007ffff000, user kstack 0x0000000087fad000 do_fork map code segment at pa:0000000087fb2000 of parent to child at va:0000000000010000. going to insert process 1 to ready queue. -going to insert process 0 to ready queue. going to schedule process 1 to run. User call fork. will fork a child from parent 1. in alloc_proc. user frame 0x0000000087fa1000, user stack 0x000000007ffff000, user kstack 0x0000000087fa0000 do_fork map code segment at pa:0000000087fb2000 of parent to child at va:0000000000010000. going to insert process 2 to ready queue. -going to insert process 1 to ready queue. -going to schedule process 0 to run. -going to insert process 0 to ready queue. going to schedule process 2 to run. Grandchild process end, flag = 2. User exit with code:0. +going to insert process 1 to ready queue. going to schedule process 1 to run. Child process end, flag = 1. User exit with code:0. +going to insert process 0 to ready queue. going to schedule process 0 to run. Parent process end, flag = 0. User exit with code:0. @@ -1312,4 +1310,4 @@ $ git merge lab3_3_rrsched -m "continue to work on lab3_challenge1" **注意:完成实验内容后,请读者另外编写应用,对自己的实现进行检测。** -**另外,后续的基础实验代码并不依赖挑战实验,所以读者可自行决定是否将自己的工作提交到本地代码仓库中(当然,提交到本地仓库是个好习惯,至少能保存自己的“作品”)。** \ No newline at end of file +**另外,后续的基础实验代码并不依赖挑战实验,所以读者可自行决定是否将自己的工作提交到本地代码仓库中(当然,提交到本地仓库是个好习惯,至少能保存自己的“作品”)。**