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 21–25 of 37

Q21GATE 20131 markMCQ−0.33 if wrong
A scheduling algorithm assigns priority proportional to the waiting time of a process. Every process starts with priority zero (the lowest priority). The scheduler re-evaluates the process priorities every T time units and decides the next process to schedule. Which one of the following is TRUE if the processes have no I/O operations and all arrive at time zero?

Q22GATE 20122 marksMCQ−0.67 if wrong
Consider the 3 processes, P1, P2 and P3 shown in the table.
Process Arrival time Time Units Required P1 0 5 P2 1 7 P3 3 4
The completion order of the 3 processes under the policies FCFS and RR2 (round robin scheduling with CPU quantum of 2 time units) are

Q23GATE 20112 marksMCQ−0.67 if wrong
Consider the following table of arrival time and burst time for three processes P0, P1 and P2.
Process Arrival time Burst Time P0 0 ms 9 ms P1 1 ms 4 ms P2 2 ms 9 ms
The pre-emptive shortest job first scheduling algorithm is used. Scheduling is carried out only at arrival or completion of processes. What is the average waiting time for the three processes?

Q24GATE 20101 markMCQ−0.33 if wrong
Which of the following statements are true?
I. Shortest remaining time first scheduling may cause starvation
II. Preemptive scheduling may cause starvation
III. Round robin is better than FCFS in terms of response time

Q25GATE 20082 marksMCQ−0.67 if wrong
If the time-slice used in the round-robin scheduling policy is more than the maximum time required to execute any process, then the policy will

Keep practising

Topics in Operating System

All CS topics ›