!3 修改lab3挑战1的期望输出结果

Merge pull request !3 from mgt/master
pull/4/head
syivester 3 years ago committed by Gitee
commit 129daa0978

@ -1052,22 +1052,20 @@ will fork a child from parent 0.
in alloc_proc. user frame 0x0000000087fae000, user stack 0x000000007ffff000, user kstack 0x0000000087fad000 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. 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 1 to ready queue.
going to insert process 0 to ready queue.
going to schedule process 1 to run. going to schedule process 1 to run.
User call fork. User call fork.
will fork a child from parent 1. will fork a child from parent 1.
in alloc_proc. user frame 0x0000000087fa1000, user stack 0x000000007ffff000, user kstack 0x0000000087fa0000 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. 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 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. going to schedule process 2 to run.
Grandchild process end, flag = 2. Grandchild process end, flag = 2.
User exit with code:0. User exit with code:0.
going to insert process 1 to ready queue.
going to schedule process 1 to run. going to schedule process 1 to run.
Child process end, flag = 1. Child process end, flag = 1.
User exit with code:0. User exit with code:0.
going to insert process 0 to ready queue.
going to schedule process 0 to run. going to schedule process 0 to run.
Parent process end, flag = 0. Parent process end, flag = 0.
User exit with code:0. User exit with code:0.
@ -1312,4 +1310,4 @@ $ git merge lab3_3_rrsched -m "continue to work on lab3_challenge1"
**注意:完成实验内容后,请读者另外编写应用,对自己的实现进行检测。** **注意:完成实验内容后,请读者另外编写应用,对自己的实现进行检测。**
**另外,后续的基础实验代码并不依赖挑战实验,所以读者可自行决定是否将自己的工作提交到本地代码仓库中(当然,提交到本地仓库是个好习惯,至少能保存自己的“作品”)。** **另外,后续的基础实验代码并不依赖挑战实验,所以读者可自行决定是否将自己的工作提交到本地代码仓库中(当然,提交到本地仓库是个好习惯,至少能保存自己的“作品”)。**

Loading…
Cancel
Save