Short processes wait for long⟹Convoy Effect (FCFS)
Cannot be preemptive⟹FCFS
Solution to starvation⟹Aging
The Ultimate Round Robin Checklist
The Ultimate Round Robin Checklist
Queue Discipline: Strictly FIFO. Preempted processes go to the tail.
Preemption Rule: Happens exactly at multiples of q. Never in the middle of a quantum.
Termination at Boundary: If burst ends exactly at q, it terminates. It does not re-enter the queue.
Context Switch Count: Total Blocks in Gantt −1.
New Arrivals: Enter the queue before the preempted process is added to the tail.
Starvation: Impossible in pure Round Robin.
3 more cards in this chapter
Try a question
Answer it here to see how it works. Nothing is recorded until you sign in.
Question 1
Level 1: Warm-up
Three processes arrive at time zero with CPU burst times of 0.01 seconds, 15 milliseconds, and 25 milliseconds. If the scheduler uses Non-Preemptive Shortest Job First (SJF), what is the minimum achievable average waiting time in milliseconds (rounded to 2 decimal places)?
Question 2
Level 1: Warm-up
Consider the following statements about CPU scheduling algorithms:
Statement 1: Round Robin scheduling can cause starvation if the time quantum is very small.
Statement 2: First Come First Serve (FCFS) scheduling never causes starvation.
Which of the following is correct?
Question 3
Level 1: Warm-up
For a specific process, the Turnaround Time is 15 ms and the Burst Time is 10 ms. Based on the relationship between scheduling metrics, what is the maximum possible value of the Response Time for this process in milliseconds?
Question 4
Level 1: Warm-up
Which of the following statements accurately describes the preemption condition in Shortest Remaining Time First (SRTF) scheduling?
Question 5
Level 1: Warm-up
Consider the following statements about CPU scheduling algorithms:
Statement 1: For processes arriving at different times, Shortest Remaining Time First (SRTF) always gives lower or equal average waiting time compared to Non-Preemptive SJF.
Statement 2: For processes arriving at the same time, SRTF and Non-Preemptive SJF produce different Gantt charts.
Which of the following is correct?
Question 6
Level 1: Warm-up
A process has a base priority of 8. The aging function increases its priority by 2 for every 5 time units it waits. If the process has waited for 10 time units, what is its effective priority?
Question 7
Level 1: Warm-up
In a Priority Scheduling system, what is the maximum consequence for a low-priority process if a continuous stream of higher-priority processes arrives?
Question 8
Level 1: Warm-up
A process has a base priority of 10. The aging function increases its priority by 3 for every 4 time units it waits. If the process has waited for 12 time units, what is its effective priority?
Question 9
Level 1: Warm-up
Assertion (A): When all processes arrive at time t=0, Shortest Job First (SJF) and Shortest Remaining Time First (SRTF) scheduling produce identical Gantt charts and the same average waiting time.
Reason (R): Preemption in SRTF occurs only when a newly arrived process has a strictly smaller remaining burst time than the currently running process.
Question 10
Level 1: Warm-up
Three processes arrive with the following arrival times (AT) and burst times (BT) in milliseconds: P1: AT = 0, BT = 6; P2: AT = 1, BT = 3; P3: AT = 2, BT = 1. Compute the ratio of the average waiting time under Non-Preemptive Shortest Job First (SJF) to the average waiting time under preemptive Shortest Remaining Time First (SRTF). Round your answer to two decimal places.
Free preview ends here
Login to view the complete short notes
Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.
Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.
Built around you, not around a syllabus PDF
Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.
Revision that hits your weak spots
We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.
Questions calibrated to the real exam
Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.
Notes written for recall, not for volume
Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.
One place for everything
Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.
Honest progress
No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.
Unlock the whole course
Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.
Short processes wait for long⟹Convoy Effect (FCFS)
Cannot be preemptive⟹FCFS
Solution to starvation⟹Aging
The Ultimate Round Robin Checklist
The Ultimate Round Robin Checklist
Queue Discipline: Strictly FIFO. Preempted processes go to the tail.
Preemption Rule: Happens exactly at multiples of q. Never in the middle of a quantum.
Termination at Boundary: If burst ends exactly at q, it terminates. It does not re-enter the queue.
Context Switch Count: Total Blocks in Gantt −1.
New Arrivals: Enter the queue before the preempted process is added to the tail.
Starvation: Impossible in pure Round Robin.
Final Exam Readiness: If You See X, Do Y
Final Exam Readiness: If You See X, Do Y
Pattern 1: "Find the average waiting time"
Draw the Gantt chart. Calculate Completion Time for each. Apply WT=CT−Arrival−Burst. Do not forget to include context switch time in the CT if c>0.
Pattern 2: "How many context switches occurred?"
Draw the Gantt chart. Count the total number of process blocks. Subtract 1.
Pattern 3: "Process A switched to B exactly twice..."
This is a reverse-engineering puzzle. Map the transitions to Gantt blocks. Use the queue logic to determine the order. Use the quantum to bound the burst times.
Pattern 4: "What happens if quantum is increased to infinity?"
The answer is always "It becomes FCFS" or "Waiting time increases and response time degrades".
Pattern 5: "Which algorithm is best for interactive systems?"
Round Robin. Keyword match: Interactive equals good response time equals Round Robin.
Cpu Scheduling: Solved Questions with Step-by-Step Explanations (10 Problems)
Question 1 · Operating SystemNAT
Three processes arrive at time zero with CPU burst times of 0.01 seconds, 15 milliseconds, and 25 milliseconds. If the scheduler uses Non-Preemptive Shortest Job First (SJF), what is the minimum achievable average waiting time in milliseconds (rounded to 2 decimal places)?
Correct Answer:
11.67
Step-by-Step Solution
Key idea: Convert all burst times to the same unit, then apply SJF to minimize average waiting time.
Step 1: Convert all burst times to milliseconds:
P1: 0.01 seconds = 10 ms
P2: 15 ms
P3: 25 ms
Step 2: Sort by burst time (SJF order):
P1: 10 ms
P2: 15 ms
P3: 25 ms
Step 3: Calculate waiting times:
P1: WT = 0 (runs first)
P2: WT = 10 (waits for P1)
P3: WT = 10 + 15 = 25 (waits for P1 and P2)
Step 4: Calculate average waiting time:
Avg WT=30+10+25=335=11.67 ms
Answer: 11.67
Question 2 · Operating SystemMCQ
Consider the following statements about CPU scheduling algorithms:
Statement 1: Round Robin scheduling can cause starvation if the time quantum is very small.
Statement 2: First Come First Serve (FCFS) scheduling never causes starvation.
Which of the following is correct?
A.
Both Statement 1 and Statement 2 are true
B.
Statement 1 is true, but Statement 2 is false
C.
Statement 1 is false, but Statement 2 is true
D.
Both Statement 1 and Statement 2 are false
Correct Answer:
C
Step-by-Step Solution
Key idea: This is a bounding question testing the properties matrix of scheduling algorithms.
Step 1: Evaluate Statement 1. Round Robin gives every process a fixed time slice in a cyclic order. No process is indefinitely blocked, regardless of the time quantum size. A small quantum increases context switch overhead, but does not cause starvation. Thus, Statement 1 is false.
Step 2: Evaluate Statement 2. FCFS executes processes in the exact order they arrive. Every process will eventually reach the front of the queue and execute. Thus, it never causes starvation. Statement 2 is true.
Step 3: Conclusion: Statement 1 is false, but Statement 2 is true.
Answer: C
Question 3 · Operating SystemMCQ
For a specific process, the Turnaround Time is 15 ms and the Burst Time is 10 ms. Based on the relationship between scheduling metrics, what is the maximum possible value of the Response Time for this process in milliseconds?
A.
5
B.
15
C.
10
D.
25
Correct Answer:
A
Step-by-Step Solution
Key idea: Response Time (RT) is bounded by Waiting Time (WT). We must first find WT.
Step 1: Calculate Waiting Time using the formula: WT = TAT - BT.
Step 3: Recognize that Waiting Time includes the initial Response Time plus any additional time spent waiting in the ready queue after preemption.
Step 4: Therefore, RT ≤ WT. The maximum possible value for RT occurs when there is no preemption, meaning RT = WT.
Answer: 5
Question 4 · Operating SystemMCQ
Which of the following statements accurately describes the preemption condition in Shortest Remaining Time First (SRTF) scheduling?
A.
A newly arrived process preempts the running process if its burst time is less than or equal to the remaining time of the running process.
B.
A newly arrived process preempts the running process only if its burst time is strictly less than the remaining time of the running process.
C.
A newly arrived process always preempts the running process regardless of burst times.
D.
Preemption in SRTF occurs based on the arrival time order, not the remaining burst time.
Correct Answer:
B
Step-by-Step Solution
Key idea: SRTF preemption requires a strict inequality to justify the overhead of a context switch.
Step 1: Recall the definition of SRTF: it is the preemptive version of SJF.
Step 2: Identify the trigger for preemption: a new process arrives.
Step 3: Apply the condition: preemption occurs ONLY IF the new process's burst time is strictly less than (<) the remaining burst time of the currently running process.
Step 4: Note that if the times are equal, no preemption occurs to avoid unnecessary context switch overhead.
Answer: B
Question 5 · Operating SystemMCQ
Consider the following statements about CPU scheduling algorithms:
Statement 1: For processes arriving at different times, Shortest Remaining Time First (SRTF) always gives lower or equal average waiting time compared to Non-Preemptive SJF.
Statement 2: For processes arriving at the same time, SRTF and Non-Preemptive SJF produce different Gantt charts.
Which of the following is correct?
A.
Statement 1 is true, Statement 2 is false
B.
Statement 1 is false, Statement 2 is true
C.
Both statements are true
D.
Both statements are false
Correct Answer:
A
Step-by-Step Solution
Key idea: Understand when SRTF and SJF differ and when they give the same results.
Step 1: Analyze Statement 1:
When processes arrive at different times, SRTF can preempt a running process to serve a newly arrived shorter process.
SJF cannot preempt, so short processes may wait behind long ones.
Therefore, SRTF always gives ≤ average waiting time compared to SJF for staggered arrivals.
Statement 1 is TRUE.
Step 2: Analyze Statement 2:
When all processes arrive at the same time (t=0), no new processes arrive to cause preemption.
Both SRTF and SJF will execute processes in the same order (sorted by burst time).
They produce identical Gantt charts and identical metrics.
Statement 2 is FALSE.
Step 3: Conclusion:
Statement 1 is true
Statement 2 is false
Answer: A
Question 6 · Operating SystemNAT
A process has a base priority of 8. The aging function increases its priority by 2 for every 5 time units it waits. If the process has waited for 10 time units, what is its effective priority?
Correct Answer:
12.00
Step-by-Step Solution
Key idea: This is a direct formula application question testing the concept of aging in scheduling.
Step 1: Identify the base priority, which is 8.
Step 2: Calculate the number of aging intervals. The process waited for 10 time units, and aging occurs every 5 time units. Number of intervals = 10 / 5 = 2.
In a Priority Scheduling system, what is the maximum consequence for a low-priority process if a continuous stream of higher-priority processes arrives?
A.
It receives a larger time quantum
B.
It experiences indefinite blocking (starvation)
C.
It triggers the convoy effect
D.
It reduces the overall context switch overhead
Correct Answer:
B
Step-by-Step Solution
Key idea: This is an observation question testing the fundamental flaw of Priority Scheduling.
Step 1: Analyze the scenario: a low-priority process is in the ready queue, and higher-priority processes continuously arrive.
Step 2: In Priority Scheduling, the CPU is always allocated to the highest priority ready process.
Step 3: Because higher-priority processes keep arriving, the low-priority process will never get a chance to execute.
Step 4: This condition is known as indefinite blocking or starvation.
Answer: B
Question 8 · Operating SystemNAT
A process has a base priority of 10. The aging function increases its priority by 3 for every 4 time units it waits. If the process has waited for 12 time units, what is its effective priority?
Correct Answer:
19.00
Step-by-Step Solution
Key idea: This is a direct formula application question testing the concept of aging in scheduling.
Step 1: Identify the base priority, which is 10.
Step 2: Calculate the number of aging intervals. The process waited for 12 time units, and aging occurs every 4 time units. Number of intervals = 12 / 4 = 3.
Assertion (A): When all processes arrive at time t=0, Shortest Job First (SJF) and Shortest Remaining Time First (SRTF) scheduling produce identical Gantt charts and the same average waiting time.
Reason (R): Preemption in SRTF occurs only when a newly arrived process has a strictly smaller remaining burst time than the currently running process.
A.
Both A and R are true and R is the correct explanation of A
B.
Both A and R are true but R is NOT the correct explanation of A
C.
A is true but R is false
D.
A is false but R is true
Correct Answer:
A
Step-by-Step Solution
Key idea: This is a comparison question testing the relationship between SJF and SRTF under specific arrival conditions.
Step 1: Evaluate Assertion (A). When all processes arrive at t=0, no new processes arrive during execution. Since SRTF preempts only on new arrivals with shorter remaining time, and there are no new arrivals, SRTF never preempts. Thus, SRTF behaves exactly like non-preemptive SJF, producing identical Gantt charts and metrics. A is true.
Step 2: Evaluate Reason (R). The preemption condition in SRTF is: preempt if and only if a newly arrived process has strictly smaller remaining burst time. This is the standard definition. R is true.
Step 3: Check if R explains A. Yes. The absence of new arrivals (stated in A) means the preemption condition (stated in R) is never triggered, which is why SJF and SRTF are identical. R directly explains A.
Answer: A
Common trap: Students ignore the constraint "all arrive at t=0" and assume SRTF always preempts, leading them to mark D.
Question 10 · Operating SystemNAT
Three processes arrive with the following arrival times (AT) and burst times (BT) in milliseconds: P1: AT = 0, BT = 6; P2: AT = 1, BT = 3; P3: AT = 2, BT = 1. Compute the ratio of the average waiting time under Non-Preemptive Shortest Job First (SJF) to the average waiting time under preemptive Shortest Remaining Time First (SRTF). Round your answer to two decimal places.
Correct Answer:
2.00
Step-by-Step Solution
Key idea: This is a comparison question testing the optimality difference between SJF and SRTF when processes arrive at staggered times.
Step 1: Compute average waiting time under SJF (non-preemptive).
At t=0: Only P1 available. P1 runs from 0 to 6.
At t=6: P2 (BT=3) and P3 (BT=1) available. P3 has shorter burst, runs 6 to 7.