Question 1 · Operating System · 2026_Set2
MCQ
Which one of the following CPU scheduling algorithms cannot be preemptive?
- A.
Shortest Remaining Time First (SRTF) Scheduling
- B.
First Come First Serve (FCFS) Scheduling
- C.
Round Robin Scheduling
- D.
Priority Scheduling
Question 2 · Operating System · 2026_Set1
NAT
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 50 (in seconds). Similarly, a new process of type C arrives at time t=11,22,33,44, and 55 (in seconds). The CPU scheduling policy is First Come First Serve (FCFS). The first process of type A starts running at t=10 seconds. The average waiting time (in seconds) for the 10 processes is ___________. (rounded off to one decimal place)
Question 3 · Operating System · 2025_Set2
MCQ
Processes P1, 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?
Question 4 · Operating System · 2025_Set1
MCQ
A computer has two processors, M1 and M2. Four processes P1,P2,P3,P4 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:
• M1 uses priority of execution for the processes as, P1>P3>P2>P4, i.e., P1 and P4 have highest and lowest priorities, respectively.
• M2 uses priority of execution for the processes as, P2>P3>P4>P1, i.e., P2 and P1 have highest and lowest priorities, respectively.
A process Pi is scheduled to a processor Mk, if the processor is free and no other process Pj 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?
Question 5 · Operating System · 2024_Set2
MCQ
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?
- A.
SRTF = 6, NP-SJF = 7
- B.
SRTF = 6, NP-SJF = 7.5
- C.
SRTF = 7, NP-SJF = 7.5
- D.
SRTF = 7, NP-SJF = 8.5
Question 6 · Operating System · 2023
MSQ
Which one or more of the following CPU scheduling algorithms can potentially cause starvation?
- A.
First-in First-Out
- B.
Round Robin
- C.
Priority Scheduling
- D.
Shortest Job First
Question 7 · Operating System · 2022
MCQ
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 <b>NOT</b> possible as CPU burst time (in time units) of these processes?
- A.
P = 4, Q = 10, R = 6, S = 2
- B.
P = 2, Q = 9, R = 5, S = 1
- C.
P = 4, Q = 12, R = 5, S = 4
- D.
P = 3, Q = 7, R = 7, S = 3
Question 8 · Operating System · 2021_Set2
MSQ
Which of the following statement(s) is/are correct in the context of CPU scheduling?
- A.
Turnaround time includes waiting time.
- B.
The goal is to only maximize CPU utilization and minimize throughput.
- C.
Round-robin policy can be used even when the CPU time required by each of the processes is not known apriori.
- D.
Implementing preemptive scheduling needs hardware support.
Question 9 · Operating System · 2021_Set1
NAT
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.