📄 printf.txt
字号:
C:\tmp>os2
取得空闲PCB块的i=pfree: i=0
Enter the process's NAME(一个唯一正整数作为进程编号): 1
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
取得空闲PCB块的i=pfree: i=1
Enter the process's NAME(一个唯一正整数作为进程编号): 2
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
取得空闲PCB块的i=pfree: i=2
Enter the process's NAME(一个唯一正整数作为进程编号): 3
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
取得空闲PCB块的i=pfree: i=3
Enter the process's NAME(一个唯一正整数作为进程编号): 4
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
取得空闲PCB块的i=pfree: i=4
Enter the process's NAME(一个唯一正整数作为进程编号): 5
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
取得空闲PCB块的i=pfree: i=5
Enter the process's NAME(一个唯一正整数作为进程编号): 6
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
取得空闲PCB块的i=pfree: i=6
Enter the process's NAME(一个唯一正整数作为进程编号): 7
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
取得空闲PCB块的i=pfree: i=7
Enter the process's NAME(一个唯一正整数作为进程编号): 8
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
取得空闲PCB块的i=pfree: i=8
Enter the process's NAME(一个唯一正整数作为进程编号): 9
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
取得空闲PCB块的i=pfree: i=9
Enter the process's NAME(一个唯一正整数作为进程编号): 10
Enter the process's STATUS(0表示就绪,1表示运行,2表示结束)
因为是进程创建时是就绪状态,这里统一输入0): 0
******创建了N个进程以下是N个进程的PCB块信息:*******
这是进程标识为 1 的PCB块信息:
name: 1
status: 0
needtime: 8
它的next:1
这是进程标识为 2 的PCB块信息:
name: 2
status: 0
needtime: 2
它的next:2
这是进程标识为 3 的PCB块信息:
name: 3
status: 0
needtime: 7
它的next:3
这是进程标识为 4 的PCB块信息:
name: 4
status: 0
needtime: 7
它的next:4
这是进程标识为 5 的PCB块信息:
name: 5
status: 0
needtime: 1
它的next:5
这是进程标识为 6 的PCB块信息:
name: 6
status: 0
needtime: 5
它的next:6
这是进程标识为 7 的PCB块信息:
name: 7
status: 0
needtime: 10
它的next:7
这是进程标识为 8 的PCB块信息:
name: 8
status: 0
needtime: 4
它的next:8
这是进程标识为 9 的PCB块信息:
name: 9
status: 0
needtime: 8
它的next:9
这是进程标识为 10 的PCB块信息:
name: 10
status: 0
needtime: 8
它的next:-1
run=-1
ready.head=0 ready.tail=9
pfree=-1
Press any key to continue . . .
process 1 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 2 切换时间为1秒,wait ……
(switched time) 1 second
process 2 will be RUN 2 seconds time, please wait ……
1 second
1 second
process 2 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 3 切换时间为1秒,wait ……
(switched time) 1 second
process 3 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 4 切换时间为1秒,wait ……
(switched time) 1 second
process 4 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 5 切换时间为1秒,wait ……
(switched time) 1 second
process 5 will be RUN 1 seconds time, please wait ……
1 second
process 5 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 6 切换时间为1秒,wait ……
(switched time) 1 second
process 6 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 7 切换时间为1秒,wait ……
(switched time) 1 second
process 7 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 8 切换时间为1秒,wait ……
(switched time) 1 second
process 8 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 9 切换时间为1秒,wait ……
(switched time) 1 second
process 9 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 10 切换时间为1秒,wait ……
(switched time) 1 second
process 10 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 1 切换时间为1秒,wait ……
(switched time) 1 second
process 1 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 3 切换时间为1秒,wait ……
(switched time) 1 second
process 3 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 4 切换时间为1秒,wait ……
(switched time) 1 second
process 4 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 6 切换时间为1秒,wait ……
(switched time) 1 second
process 6 will be RUN 2 seconds time, please wait ……
1 second
1 second
process 6 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 7 切换时间为1秒,wait ……
(switched time) 1 second
process 7 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 8 切换时间为1秒,wait ……
(switched time) 1 second
process 8 will be RUN 1 seconds time, please wait ……
1 second
process 8 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 9 切换时间为1秒,wait ……
(switched time) 1 second
process 9 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 10 切换时间为1秒,wait ……
(switched time) 1 second
process 10 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 1 切换时间为1秒,wait ……
(switched time) 1 second
process 1 will be RUN 2 seconds time, please wait ……
1 second
1 second
process 1 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 3 切换时间为1秒,wait ……
(switched time) 1 second
process 3 will be RUN 1 seconds time, please wait ……
1 second
process 3 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 4 切换时间为1秒,wait ……
(switched time) 1 second
process 4 will be RUN 1 seconds time, please wait ……
1 second
process 4 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 7 切换时间为1秒,wait ……
(switched time) 1 second
process 7 will be RUN one 3 seconds time, please wait ……
1 second
1 second
1 second
切换情况一:进程未运行完,但由于时间片到,而进行进程调度
现在进行进程切换,切换到进程标识为 9 切换时间为1秒,wait ……
(switched time) 1 second
process 9 will be RUN 2 seconds time, please wait ……
1 second
1 second
process 9 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 10 切换时间为1秒,wait ……
(switched time) 1 second
process 10 will be RUN 2 seconds time, please wait ……
1 second
1 second
process 10 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 7 切换时间为1秒,wait ……
(switched time) 1 second
process 7 will be RUN 1 seconds time, please wait ……
1 second
process 7 is OVER!
切换情况三:时间片未到,但进程已经运行完,而进行进程调度
现在进行进程切换,切换到进程标识为 4470408 切换时间为1秒,wait ……
(switched time) 1 second
Congratulation to you! 10 Processes haved finished, Bye!
Press any key to continue . . .
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -