OS_09
OS_09
CS-315
BS(CS/IT) 5th Semester
Lecture No: 09
CS&IT Department
BUET Turbat
Priority Scheduling
• Processes P1, P2, P3 are the processes with their arrival time,
burst time and priorities listed in table below:
• The Gantt Chart for the schedule is:
Waiting Time for P1 = (8 – 1) - 0 = 7
Waiting Time for P2 = (4 – 1-1) = 2
Waiting Time for P3 = (2 – 2) = 0
Average Waiting Time = (Total Waiting Time) / No. of Processes
= (7 + 2 + 0) / 3
=9/3
= 3 milliseconds
Round Robin Scheduling (RR)