0
0
Operating Systemsknowledge~20 mins

Scheduling criteria (turnaround time, waiting time, throughput) in Operating Systems - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Scheduling Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Turnaround Time

Which of the following best defines turnaround time in process scheduling?

AThe number of processes completed per unit time.
BThe time a process spends waiting in the ready queue.
CThe time taken by the CPU to execute the process instructions.
DThe total time taken from process submission to completion.
Attempts:
2 left
💡 Hint

Think about the entire duration a process is in the system.

🧠 Conceptual
intermediate
2:00remaining
Waiting Time Explanation

What does waiting time represent in CPU scheduling?

AThe time a process spends executing on the CPU.
BThe time a process spends waiting in the ready queue before execution.
CThe total time from process arrival to completion.
DThe time taken to switch between processes.
Attempts:
2 left
💡 Hint

Consider the time before the process actually starts running.

🔍 Analysis
advanced
2:00remaining
Calculating Throughput

Given 5 processes completed in 20 seconds total, what is the throughput?

A0.25 processes per second
B20 processes per second
C5 processes per second
D4 processes per second
Attempts:
2 left
💡 Hint

Throughput is the number of processes completed divided by total time.

Comparison
advanced
2:00remaining
Comparing Scheduling Criteria

Which scheduling criterion focuses on maximizing the number of processes completed in a given time?

AThroughput
BWaiting time
CTurnaround time
DResponse time
Attempts:
2 left
💡 Hint

Think about the rate of process completion.

Reasoning
expert
3:00remaining
Impact of Scheduling on Waiting Time

Consider three processes with burst times 4, 3, and 2 units arriving at the same time. Which scheduling method will minimize the average waiting time?

AFirst-Come, First-Served (FCFS)
BRound Robin with quantum 1
CShortest Job First (SJF)
DPriority Scheduling with arbitrary priorities
Attempts:
2 left
💡 Hint

Think about which method runs shorter processes first.