Scheduling questions — page 1 of 2

Q64

GATE CS 2026 CS-1SchedulingNAT2 marks
Consider a CPU that has to execute two types of processes. The first type, Actuators (A), requires a CPU burst of 6 seconds. The second type, Controllers (C), requires a CPU burst of 8 seconds. A new process of type A arrives at time t=10,20,30,40,and 50t = 10, 20, 30, 40, \text{and } 50 (in seconds). Similarly, a new process of type C arrives at time t=11,22,33,44,and 55t = 11, 22, 33, 44, \text{and } 55 (in seconds). The CPU scheduling policy is First Come First Serve (FCFS). The first process of type A starts running at t=10t = 10 seconds. The average waiting time (in seconds) for the 10 processes is ___________. (rounded off to one decimal place)
Show answer without attempting

Answer: 9.5

Q23

GATE CS 2026 CS-2SchedulingMCQ1 mark−1/3 if wrong
Which one of the following CPU scheduling algorithms cannot be preemptive?
Show answer without attempting

Answer: B

Q38

GATE CS 2025 CS-1SchedulingMCQ2 marks−2/3 if wrong
A computer has two processors, M1M_1 and M2M_2. Four processes P1,P2,P3,P4P_1, P_2, P_3, P_4 with CPU bursts of 20, 16, 25, and 10 milliseconds, respectively, arrive at the same time and these are the only processes in the system. The scheduler uses non-preemptive priority scheduling, with priorities decided as follows:
- M1M_1 uses priority of execution for the processes as, P1>P3>P2>P4P_1 > P_3 > P_2 > P_4, i.e., P1P_1 and P4P_4 have highest and lowest priorities, respectively.
- M2M_2 uses priority of execution for the processes as, P2>P3>P4>P1P_2 > P_3 > P_4 > P_1, i.e., P2P_2 and P1P_1 have highest and lowest priorities, respectively.
A process PiP_i is scheduled to a processor MkM_k, if the processor is free and no other process PjP_j is waiting with higher priority. At any given point of time, a process can be allocated to any one of the free processors without violating the execution priority rules. Ignore the context switch time. What will be the average waiting time of the processes in milliseconds?
Show answer without attempting

Answer: A

Q26

GATE CS 2025 CS-2SchedulingMCQ1 mark−1/3 if wrong
Processes P1,P2,P3,P4P1, P2, P3, P4 arrive in that order at times 0, 1, 2, and 8 milliseconds respectively, and have execution times of 10, 13, 6, and 9 milliseconds respectively. Shortest Remaining Time First (SRTF) algorithm is used as the CPU scheduling policy. Ignore context switching times.

Which ONE of the following correctly gives the average turnaround time of the four processes in milliseconds?
Show answer without attempting

Answer: D

Q37

GATE CS 2024 CS-2SchedulingMCQ2 marks−2/3 if wrong
Consider a single processor system with four processes A, B, C, and D, represented as given below, where for each process the first value is its arrival time, and the second value is its CPU burst time.

A (0, 10), B (2, 6), C (4, 3), and D (6, 7).

Which one of the following options gives the average waiting times when preemptive Shortest Remaining Time First (SRTF) and Non-Preemptive Shortest Job First (NP-SJF) CPU scheduling algorithms are applied to the processes?
Show answer without attempting

Answer: B

Q27

GATE CS 2023 CSSchedulingMSQ1 mark
Which one or more of the following CPU scheduling algorithms can potentially cause starvation?
More than one option can be correct.
Show answer without attempting

Answer: A, C, D OR C, D

Q42

GATE CS 2022 CSSchedulingMCQ2 marks−2/3 if wrong
Consider four processes PP, QQ, RR, and SS scheduled on a CPU as per round robin algorithm with a time quantum of 4 units. The processes arrive in the order PP, QQ, RR, SS, all at time t=0t = 0. There is exactly one context switch from SS to QQ, exactly one context switch from RR to QQ, and exactly two context switches from QQ to RR. There is no context switch from SS to PP. 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?
Show answer without attempting

Answer: D

Q25

GATE CS 2021 CS-1SchedulingNAT1 mark
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.
Show answer without attempting

Answer: 12

Q14

GATE CS 2021 CS-2SchedulingMSQ1 mark
Which of the following statement(s) is/are correct in the context of CPU scheduling?
More than one option can be correct.
Show answer without attempting

Answer: A, C, D

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

Q41

GATE CS 2019 CSSchedulingNAT2 marks
Consider the following four processes with arrival times (in milliseconds) and their length of CPU bursts (in milliseconds) as shown below:
ProcessP1P2P3P4
Arrival time0134
CPU burst time313Z
These processes are run on a single processor using preemptive Shortest Remaining Time First scheduling algorithm. If the average waiting time of the processes is 11 millisecond, then the value of Z is __________.
Show answer without attempting

Answer: 2

Q53

GATE CS 2018 CSSchedulingNAT2 marks
Consider a storage disk with 4 platters (numbered as 0, 1, 2 and 3), 200 cylinders (numbered as 0, 1, …, 199), and 256 sectors per track (numbered as 0, 1, …, 255). The following 6 disk requests of the form [sector number, cylinder number, platter number] are received by the disk controller at the same time:

[120, 72, 2] , [180, 134, 1] , [60, 20, 0] , [212, 86, 3] , [56, 116, 2] , [118, 16, 1]

Currently the head is positioned at sector number 100 of cylinder 80, and is moving towards higher cylinder numbers. The average power dissipation in moving the head over 100 cylinders is 20 milliwatts and for reversing the direction of the head movement once is 15 milliwatts. Power dissipation associated with rotational latency and switching of head between different platters is negligible.

The total power consumption in milliwatts to satisfy all of the above disk requests using the Shortest Seek Time First disk scheduling algorithm is _______.
Show answer without attempting

Answer: 85

Q24

GATE CS 2017 CS-1SchedulingNAT1 mark
Consider the following CPU processes with arrival times (in milliseconds) and length of CPU bursts (in milliseconds) as given below:
ProcessArrival timeBurst time
P107
P233
P355
P462
If the pre-emptive shortest remaining time first scheduling algorithm is used to schedule the processes, then the average waiting time across all processes is ____________ milliseconds.
Show answer without attempting

Answer: 3.0

Q51

GATE CS 2017 CS-2SchedulingNAT2 marks
Consider the set of processes with arrival time (in milliseconds), CPU burst time (in milliseconds), and priority (0 is the highest priority) shown below. None of the processes have I/O burst time.
ProcessArrival TimeBurst TimePriority
P1P_10112
P2P_25280
P3P_31223
P4P_42101
P5P_59164
The average waiting time (in milliseconds) of all the processes using preemptive priority scheduling algorithm is ____________.
Show answer without attempting

Answer: 29.0

Q20

GATE CS 2016 CS-1SchedulingMCQ1 mark−1/3 if wrong
Consider an arbitrary set of CPU-bound processes with unequal CPU burst lengths submitted at the same time to a computer system. Which one of the following process scheduling algorithms would minimize the average waiting time in the ready queue?
Show answer without attempting

Answer: A

Q48

GATE CS 2016 CS-1SchedulingNAT2 marks
Consider a disk queue with requests for I/O to blocks on cylinders 47, 38, 121, 191, 87, 11, 92, 10. The C-LOOK scheduling algorithm is used. The head is initially at cylinder number 63, moving towards larger cylinder numbers on its servicing pass. The cylinders are numbered from 0 to 199. The total head movement (in number of cylinders) incurred while servicing these requests is ________.
Show answer without attempting

Answer: 346.0

Q47

GATE CS 2016 CS-2SchedulingNAT2 marks
Consider the following processes, with the arrival time and the length of the CPU burst given in milliseconds. The scheduling algorithm used is preemptive shortest remaining-time first.
ProcessArrival TimeBurst Time
P1P_1010
P2P_236
P3P_371
P4P_483
The average turn around time of these processes is _________ milliseconds.
Show answer without attempting

Answer: 8.2 to 8.3

Q14

GATE CS 2015 CS-3SchedulingMCQ1 mark−1/3 if wrong
The maximum number of processes that can be in Ready state for a computer system with nn CPUs is
Show answer without attempting

Answer: D

Q57

GATE CS 2015 CS-3SchedulingMCQ2 marks−2/3 if wrong
For the processes listed in the following table, which of the following scheduling schemes will give the lowest average turnaround time?
ProcessArrival TimeProcessing Time
A03
B16
C44
D62
Show answer without attempting

Answer: C

0/200 correct0 marks

Related topics in Operating Systems