ALL > Computer and Education > courses > university courses > undergraduate courses > Operating System > ZSTU class(2019-2020-1) > homework >
homework-3 Version 0
👤 Author: by writer 2019-09-19 04:12:48 last modified by writer
design your example  and give computation results of several cpu schedulers

Please login to reply. Login

1989812974qqcom • 2019-11-07 12:31:44
Suppose the burst time is as follows:

P1:4 P2:5 P3:9 P4:6 P5:2

for FCFS: the average waiting time is:(4+9+18+24)/5=10

for Shortest-job-First: the average waiting time is: 7.2

 

then add arrival time for each process like:

P1:1 P2:2 P3:9 P4:0 P5:13

then for Shortest-job-First algorithm the average waiting time is:(1+5+10+0+0)/5=3.2

 

and for Priority Scheduling we add priorities for each process:

P1:1 P2:2 P3:4 P4:3 P5:5

the average PostVer 0

Please login to reply. Login

Reversion History

Loading...
No reversions found.