Q2. Draw the Gantt chart and calculate the following for the processes in the table below, using Priority Scheduling Algorithm.
Processes N1 N2 N3 N4
Burst Time (in ms) 14 8 7 12
Priority 2 3 4 1
a. Draw Gantt Chart
b. Calculate waiting time of each process
c. Average waiting time
(2 Marks) (1.5 Marks) (0.5 Mark)