500字范文,内容丰富有趣,生活中的好帮手!
500字范文 > c语言实现作业调度先来先服务和短进程优先 实验2 先来先服务调度和最短作业优先调度

c语言实现作业调度先来先服务和短进程优先 实验2 先来先服务调度和最短作业优先调度

时间:2022-08-08 03:49:54

相关推荐

c语言实现作业调度先来先服务和短进程优先 实验2 先来先服务调度和最短作业优先调度

实验2 先来先服务调度和最短作业优先调度算法实现

用C语言编程实现先来先服务和最短作业优先调度算法(设计型实验)

实验目的

理解并掌握处理机调度算法

实验原理

基于先来先服务调度和最短作业优先调度算法思想用C语言编程实现进程等待时间=进程开始运行时间-进程提交时间(即进程处于就绪态时间)

进程周转时间=进程结束时间-进程提交时间

FCFS流程图:

SJF流程图:

of the enemy's attack. Troops, and troops were scattered, Qian Kangmin, Commander, Deputy Commander Ding Bingcheng and others heroic martyrdom. Turk foreign "resistance" members for the evacuation. Since then, Wujiang County Government District long Zhang Pinquan was killed by the Japanese. CPC jindapeng, Xiao Xin was trying to recommend thinking

of the enemy's attack. Troops, and troops were scattered, Qian Kangmin, Commander, Deputy Commander Ding Bingcheng and others heroic martyrdom. Turk foreign "resistance" members for the evacuation. Since then, Wujiang County Government District long Zhang Pinquan was killed by the Japanese. CPC jindapeng, Xiao Xin was trying to recommend thinking

of the enemy's attack. Troops, and troops were scattered, Qian Kangmin, Commander, Deputy Commander Ding Bingcheng and others heroic martyrdom. Turk foreign "resistance" members for the evacuation. Since then, Wujiang County Government District long Zhang Pinquan was killed by the Japanese. CPC jindapeng, Xiao Xin was trying to recommend thinking

输入作业个数、作业号、提交时间、运行时间

按照开始时间顺序输出各作业及各参数

按照开始时间顺序输出各作业及各参数

计算各作业参数:

提交时间,运行时间,开始时间,结束时间,等待时间,周转时间

输入选择数以选择调度算法

计算平均周转时间并输出

计算平均周转时间并输出

计算各作业参数:

提交时间,运行时间,开始时间,结束时间,等待时间,周转时间

报错继续输数

先按提交时间排序

按照提交时间排序

1

FCFS算法

2

SJF算法

其他数

c语言实现作业调度先来先服务和短进程优先 实验2 先来先服务调度和最短作业优先调度算法实现.doc...

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。