9. SJF
Process:
once CPU given to the process it cannot be preempted until
completes its CPU burst
Ready queue is treated as a priority queue based on smallest CPU
time requirement.
11. SJF
TotalWaitTime
6 + 0 + 3 = 9 ms
AverageWaitingTime = (TotalWaitTime) / (Total number of
processes)
9/3 = 3 ms
TotalTurn AroundTime
30 + 3 + 6 = 39 ms
AverageTurn Around time = (TotalTurn AroundTime) / (Total
number of processes)
39 / 3 = 13 ms
13. SJF
TotalWaitTime= 0 + 7 + 15 + 9 = 31 ms
AverageWaitingTime = 31/4 = 7.75 ms
TotalTurn AroundTime = 8+11+ 14+24= 57
AverageTurn Around time = 57/4 = 14.25 ms
14. Priority
Process:
Each process is assigned a priority. Process with highest priority is
to be executed first and so on.
Processes with same priority are executed on first come first
served basis.