Moralde Justine Assignment 2
Moralde Justine Assignment 2
Based on the given data, provide the Gantt Chart and calculate the turn-around time and waiting time
of each job (include the average turn-around and average waiting time) using the following algorithms:
A. First Come First Serve FCFS D. Shortest Remaining Time First SRTF
B. Shortest Job First SJF E. Pre-emptive Priority PP
C. Non Pre-emptive Priority NPP F. Round Robin q = 5 RR q= 5
A I C B F H D G E
0 11 14 18 23 36 38 47 58
73
SJF:
ATT = 193/9 = 21.44
AWT = 120/9 = 13.33
NON-PREEMPTIVE PRIORITY
NPP:
ATT = 235/9 = 26.11
AWT = 162/9 = 18
A B I C A F H F D G E
0 4 9 12 16 23 27 29 38 47 58 73
SRTF:
ATT = 180/9 = 20
AWT = 107/9 = 11.89
A B E I B H C G D A F 0
4
6 21 24 27 29 33 44 53 60 73
PP:
A BG A 26
E I C11 F 3
A E G H D 47 F E G 36
73 D F G
0 H 27 2 2 45 18 16 5
10 I 8 3 1 23 15 12 15
20 23
27 32 33 38 43 45 50 55 60 65 69 72 73
RR Q = 5: