Scheduling questions

Q35

GATE CS 2020 CSSchedulingMCQ2 marks−2/3 if wrong
Consider the following five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time.

(P, 155), (Q, 85), (R, 110), (S, 30), (T, 115)

Assume the head is positioned at cylinder 100. The scheduler follows Shortest Seek Time First scheduling to service the requests.

Which one of the following statements is FALSE?
Show answer without attempting

Answer: B

Q50

GATE CS 2020 CSSchedulingNAT2 marks
Consider the following set of processes, assumed to have arrived at time 0. Consider the CPU scheduling algorithms Shortest Job First (SJF) and Round Robin (RR). For RR, assume that the processes are scheduled in the order P1,P2,P3,P4P_1, P_2, P_3, P_4.
ProcessesP1P_1P2P_2P3P_3P4P_4
Burst time (in ms)8724
If the time quantum for RR is 4 ms, then the absolute value of the difference between the average turnaround times (in ms) of SJF and RR (round off to 2 decimal places) is __________.
Show answer without attempting

Answer: 5.25

0/20 correct0 marks

Related topics in Operating Systems