Professional Documents
Culture Documents
Consider a system containing four processes P1, P2, P3 and P4 with burst time 9, 4, 2 and 8
time units (ms) arrive at same time. For the given Process, Arrival Time and Burst time,
construct the Gantt Chart for
Calculate the average waiting time for the scheduling method and justify which Scheduling
method could be recommended ensuring higher performance of the system. Evaluate with
respect to Average waiting time and turn-around time.
1: Highest priority
4: Lowest priority
FCFS Scheduling
SJF Scheduling
Burst Time Completion Arrival Turn Around Time Waiting Time
Process (BT) Time (CT) Time (AT) (TAT) = (CT-AT) (WT) = (TAT – BT)
(in ms) (in ms) (in ms) (in ms) (in ms)
P0 9 23 0 23 14
P1 4 6 0 6 2
P2 2 2 0 2 0
P3 8 14 0 14 6
Total 50 31
= 41 / 4 = 22/ 4
Average
=11.25 =5.5
Comparative Study