written 3.3 years ago by | modified 22 months ago by |
Draw gantt chart, calculate the average waiting time & average turn-around time if the processes are scheduled using:
FCFS algorithm
SJF algorithm (preemptive)
written 3.3 years ago by | modified 22 months ago by |
Draw gantt chart, calculate the average waiting time & average turn-around time if the processes are scheduled using:
FCFS algorithm
SJF algorithm (preemptive)
written 3.3 years ago by |
Turn Around Time = Process Completion Time – Process Arrival Time
Waiting time = Turn Around time – Burst time
Process | Arrival Time | Burst Time | Completion Time | Turn Around Time | Waiting Time |
---|---|---|---|---|---|
P1 | 0 | 6 | 6 | 6 – 0 = 6 | 6 – 6 … |
written 3.3 years ago by |
FCFS algorithm
Gantt Chart
calculate the average waiting time & average turn-around time
Average turn-around time
= (6+7+11+16+13)/5
= 53/5
= 10.6
Average turn-around time = 10.6
Average waiting time
= (0+5+6+10+12)/5
=(33)/5
=6.6
Average waiting time =6.6
SJF algorithm (non-preemptive)
Gantt Chart
calculate the average waiting time & average …