CPU Scheduling: GATE CS Previous Year Questions

CPU Scheduling · Operating System

37 questions · asked in 24 of 27 years (2000–2026)

MCQ 24 · MSQ 2 · NAT 111-mark 21 · 2-mark 16

2000Questions per year2026

Questions 6–10 of 37

Q6GATE 20231 markMSQ
Which one or more of the following CPU scheduling algorithms can potentially cause starvation?

One or more options are correct.

Q7GATE 20222 marksMCQ−0.67 if wrong
Consider four processes P, Q, R, and S scheduled on a CPU as per round robin algorithm with a time quantum of 4 units. The processes arrive in the order P, Q, R, S, all at time t = 0. There is exactly one context switch from S to Q, exactly one context switch from R to Q, and exactly two context switches from Q to R. There is no context switch from S to P. Switching to a ready process after the termination of another process is also considered a context switch. Which one of the following is NOT possible as CPU burst time (in time units) of these processes?

Q8GATE 2021 (Session 1)1 markNAT
Three processes arrive at time zero with CPU bursts of 16, 20 and 10 milliseconds. If the scheduler has prior knowledge about the length of the CPU bursts, the minimum achievable average waiting time for these three processes in a non-preemptive scheduler (rounded to nearest integer) is _____________ milliseconds.

Q9GATE 2021 (Session 2)1 markMSQ
Which of the following statement(s) is/are correct in the context of CPU scheduling?

One or more options are correct.

Q10GATE 20202 marksNAT
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.
Processes P1 P2 P3 P4 Burst time (in ms) 8 7 2 4
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 _______

Keep practising

Topics in Operating System

All CS topics ›