开发者

First Come, First Served process scheduling

开发者 https://www.devze.com 2022-12-30 00:46 出处:网络
i have 4 processes: p1 - bursts 5, priority: 3 p2 - bursts 8, priority: 2 p3 - bursts 12, priority: 2 p4 - bursts 6, priority: 1

i have 4 processes:

p1 - bursts 5, priority: 3
p2 - bursts 8, priority: 2
p3 - bursts 12, priority: 2
p4 - bursts 6, priority: 1

Assuming that all processes arrive at the scheduler at the same time what is the average response time and average tur开发者_开发技巧naround time? For FCFS is it ok to have them in the order p1, p2, p3, p4 in the execution queue?


The average response time and average turnaround time depends on the type of the scheduler (cooperative or preemptive). For the FCFS, yes it is ok to have them in the order p1, p2, p3, p4. This is a homework assignment...

See also:

  • http://en.wikipedia.org/wiki/Scheduling_%28computing%29#Common_scheduling_practices
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号