Q2.Solve the following scheduling problems:[24 Marks]A.Suppose the following five processes P1, P2, P3, P4 and P5 are given theburst times 10, 1, 2, 1 and 5 and with priorities 3, 1, 4, 5 and 2consecutively. Using thePriorityscheduling, draw the Gantt chart for theschedule and compute the average waiting time if the fourprocesses.[8 Marks]Answer:B.Suppose the following four processes P1, P2, P3 and P4 are given the bursttimes 8, 4, 9 and 5 and with arrival times 0, 1, 2 and 3 consecutively. UsingthePreemtive Shortest-Job-First (SJF)scheduling, draw the Gantt chart forthe schedule and compute the average waiting time if the four processes.[8 Marks]Answer:C.Suppose the following three processes P1, P2 and P3 are given the bursttimes 24, 3 and 3 consecutively. Draw the Gantt chart for theRound RobinScheduling.[8 Marks]
Get answer to your question and much more