WorksheetsCSF20303_Chap5: Process Scheduling
Total questions: 100
Worksheet time: 50mins
A system has 70% CPU utilization. After increasing multiprogramming, utilization becomes 90%. What principle is being applied?
Reducing context switches
Increasing CPU–I/O overlap
Reducing response time
Increasing dispatch latency
If a process frequently alternates between CPU and I/O bursts, it is best classified as:
CPU-bound
I/O-bound
Real-time
Batch
Given three processes with completion rates of 5, 7, and 8 per second, what is the system throughput?
5
6.7
20
8
A process enters the ready queue at time 4 ms and starts execution at 12 ms. What is its waiting time?
4 ms
6 ms
8 ms
12 ms
If response time must be minimized, which environment is most affected?
Batch systems
Embedded systems
Time-sharing systems
Single-user systems
Turnaround time is calculated as:
Completion time minus arrival time
Start time minus arrival time
Waiting time plus response time
CPU burst minus I/O burst
A scheduler prioritizing maximum CPU utilization may negatively affect:
Throughput
Waiting time
Context switching
CPU burst prediction
If a process completes faster than others, which metric improves most directly?
Turnaround time
Throughput
CPU utilization
Dispatch latency
Which criterion directly measures user-perceived delay?
Turnaround time
Waiting time
Response time
CPU utilization
If average waiting time increases, which scheduling goal is violated?
Maximize throughput
Minimize waiting time
Minimize CPU usage
Maximize response
Which metric is most important in real-time systems?
Throughput
CPU utilization
Deadline satisfaction
Waiting time
A scheduler that improves fairness may reduce:
Starvation
Response time
Throughput
Context switch overhead
If CPU is idle despite processes waiting for I/O, the system lacks:
Preemption
Multiprogramming
Priority scheduling
Aging
Which scheduling criterion is best to optimize interactive systems?
Turnaround time
Response time
CPU utilization
Waiting time
Minimizing turnaround time generally benefits:
Batch jobs
Interrupt handlers
Kernel threads
Idle tasks
In FCFS, a long CPU-bound process delays shorter jobs. This is called:
Starvation
Aging
Convoy effect
Deadlock
Processes arrive in order P1(10), P2(2), P3(1). What is the FCFS average waiting time?
3
7
8
10
Which scheduling algorithm guarantees minimum average waiting time?
FCFS
Round Robin
Priority
SJF
SJF scheduling requires knowing:
Arrival time
Priority value
Next CPU burst length
Waiting time
CPU burst prediction using exponential averaging depends on:
Only current burst
Only first burst
History of previous bursts
Arrival time
If α = 1 in burst prediction, the estimate equals:
Average of all bursts
Previous estimate
Last actual burst
Zero
Which scheduling algorithm is used when the shortest remaining time is selected?
A. FCFS
B. Round Robin
C. Shortest Remaining Time First
D. Priority scheduling
A new shorter job arriving during execution will preempt the current job in:
FCFS
Non-preemptive SJF
Preemptive SJF
Priority (non-preemptive)
SJF is difficult to implement mainly because:
It causes starvation
Burst times are unknown
It is non-preemptive
It increases turnaround time
If predicted CPU burst times are inaccurate, SJF performance will:
Improve
Remain same
Degrade
Become FCFS
Which workload benefits most from SJF scheduling?
Real-time
Interactive
Batch with short jobs
Kernel scheduling
In FCFS scheduling, average waiting time depends mainly on:
Order of arrival
Priority value
Time quantum
Context switch
Which scheduling algorithm is non-preemptive by default?
SRTF
Round Robin
FCFS
EDF
A long CPU burst arriving first in FCFS causes:
Reduced turnaround time
Improved response time
Increased waiting time
Which scheduling algorithm may starve long jobs?
FCFS
Round Robin
SJF
Multilevel queue
SJF prioritizes processes based on:
Arrival time
CPU burst length
Priority number
Deadline
In non-preemptive SJF, once a process starts execution, it:
Can be interrupted
Must finish its CPU burst
Is demoted
Is aged
SJF scheduling mainly optimizes:
Throughput
Turnaround time
Response time
CPU utilization
Priority scheduling behaves like SJF when priority is:
Arrival time
Inverse burst time
Waiting time
Deadline
If all processes have equal CPU burst times, SJF behaves like:
Priority scheduling
Round Robin
FCFS
Multilevel queue
In Round Robin, a very large time quantum makes it similar to:
SJF
Priority
FCFS
EDF
If the time quantum is too small, system performance degrades due to:
Increased context switching
Reduced CPU utilization
Longer waiting time for I/O
Decreased process priority
Which of the following is a disadvantage of Round Robin scheduling?
Starvation
Aging
Excessive context switches
Low CPU utilization
Round Robin scheduling is best suited for:
Batch systems
Real-time systems
Interactive systems
Embedded systems
If there are n processes, the maximum waiting time in RR is:
nq
q
(n-1)q
nq-1
Which scheduling algorithm ensures fairness among processes?
SJF
FCFS
Round Robin
Priority
Priority scheduling selects the process with:
Largest CPU burst
Smallest CPU burst
Highest priority
Earliest arrival
Starvation occurs in priority scheduling when:
Priorities are equal
Low-priority processes never execute
Time quantum is small
Context switch is long
Aging prevents starvation by:
Increasing CPU burst
Increasing waiting time
Increasing priority over time
Resetting quantum
Priority scheduling can be implemented as:
Only preemptive
Only non-preemptive
Both preemptive and non-preemptive
Neither
SJF is equivalent to priority scheduling when priority equals:
Arrival time
Inverse CPU burst
Waiting time
Deadline
Which scheduling method can combine priority with Round Robin?
FCFS
Multilevel queue
EDF
CFS
In Round Robin, response time improves because:
Short jobs run first
Jobs are preempted regularly
CPU burst is known
Priorities are static
Which scheduling algorithm is most predictable?
FCFS
Round Robin
Priority
SJF
Using RR with very small quantum wastes CPU mainly due to:
Idle time
Aging
Overhead
Starvation
Priority scheduling is most suitable for:
Interactive systems
Real-time tasks
Batch processing
Background jobs
Which scheduling approach uses different algorithms per queue?
FCFS
Multilevel queue
RR
EDF
Scheduling system processes before user processes is based on:
Burst length
Process type
Arrival time
Priority inversion can be reduced using:
Aging
FCFS
Large quantum
SJF
Which scheduling provides low response time but higher turnaround time?
FCFS
SJF
Round Robin
EDF
In preemptive priority scheduling, a higher-priority arriving process will:
Wait
Be ignored
Preempt the current process
Demote itself
Which scheduling algorithm risks indefinite postponement?
FCFS
Round Robin
Priority
EDF
Priority scheduling requires maintaining:
Burst history
Multiple queues
Priority values
Deadlines
Priority scheduling is commonly used in:
Desktop OS
Embedded systems
Real-time OS
Batch OS
Combining priority with RR mainly improves:
Fairness among same-priority tasks
Burst prediction
CPU utilization
Cache affinity
Which scheduling algorithm is simplest to implement?
SJF
Priority
FCFS
EDF
Multilevel feedback queue improves flexibility by allowing processes to:
Change arrival time
Move between queues
Fix priority
Ignore aging
Load balancing in SMP systems aims to:
Reduce cache misses
Keep CPUs equally busy
Reduce priority inversion
Increase response time
Pull migration occurs when:
Busy CPU pushes tasks
Idle CPU pulls tasks
OS forces migration
Tasks expire
Processor affinity improves performance by:
Reducing waiting time
Preserving cache contents
Reducing deadlines
Increasing priority
Hard real-time systems must:
Optimize throughput
Guarantee deadlines
Minimize response
Avoid starvation
In rate-monotonic scheduling, higher priority is given to tasks with:
Larger deadlines
Longer bursts
Shorter periods
Earlier arrival
EDF assigns priority based on:
Arrival time
CPU burst length
Proportional-share scheduling allocates CPU based on:
Burst time
Shares owned
Priority class
Arrival order
POSIX SCHED_FIFO differs from SCHED_RR because it:
Uses time slicing
Is non-preemptive
Does not time-slice equal priorities
Uses deadlines
Linux CFS selects the next task based on:
Shortest burst
Highest priority
Lowest virtual runtime
Earliest deadline
Virtual runtime in CFS represents:
Actual runtime
Weighted runtime based on priority
Waiting time
Response time
Windows scheduling uses how many priority levels?
16
32
64
128
Solaris time-sharing class is implemented using:
FCFS
RR
Multilevel feedback queue
EDF
Deterministic modeling requires:
Random inputs
Exact workload data
Simulation traces
Real hardware
75. Little’s Law relates:
the average number of items in a system, the average arrival rate, and the average time an item spends in the system
the total cost, the production rate, and the inventory turnover
the lead time, the reorder point, and the safety stock
the demand rate, the supply rate, and the backlog
Which of the following is used to calculate Little's Law in queueing theory?
CPU and I/O
Throughput and burst
Queue length, arrival rate, and waiting time
Deadline and response
If λ = 4 processes/sec and W = 2 sec, average queue length is:
2
6
8
10
Simulation is preferred over queueing models because it:
Is faster
Requires fewer inputs
Is more accurate
Avoids programming
Context switching overhead mainly affects:
CPU utilization
Throughput
Waiting time
All of the above
Testing a scheduler in real systems provides:
Low accuracy
High risk but realistic results
No cost
Deterministic output
NUMA-aware scheduling improves:
Priority handling
Cache locality
Burst prediction
Fairness
Multithreaded multicore systems allow:
One thread per core
Context switching only
Multiple hardware threads per core
Single-level scheduling
Two-level scheduling separates:
Kernel and user threads
Software and hardware threads
CPU and I/O
Batch and interactive
Interrupt latency directly affects:
Throughput
Response to real-time events
CPU utilization
Turnaround time
Dispatch latency includes:
Interrupt handling only
Context switch only
Preemption and resource release
CPU burst estimation
Which scheduling algorithm is best for strict deadlines?
FCFS
SJF
EDF
RR
Starvation is least likely in:
Priority scheduling
FCFS
SJF
EDF
Which Linux scheduler balances fairness and efficiency?
O(1) scheduler
CFS
EDF
FCFS
A scheduling domain in Linux is defined by shared:
Priority
Cache
Burst history
Deadline
Which scheduling algorithm is easiest to analyze analytically?
RR
Priority
FCFS
EDF
Which evaluation method uses trace tapes?
Deterministic modeling
Queueing model
Simulation
High context-switch rate mainly reduces:
Response time
CPU efficiency
Throughput
Fairness
Which scheduler is most flexible for mixed workloads?
FCFS
SJF
Multilevel feedback queue
FIFO
Which metric is least important for batch systems?
Turnaround time
Throughput
Response time
Waiting time
Real-time tasks in Linux have:
Dynamic priorities
Static priorities
No priorities
Time-sliced priorities
Which scheduling policy does NOT use time slicing?
RR
SCHED_RR
SCHED_FIFO
CFS
Which factor mainly affects turnaround time in Round Robin?
Arrival order
Time quantum
Priority
Burst estimation
Scheduler overhead increases when:
A. Burst times are long
B. Quantum is large
C. Quantum is very small
D. FCFS is used
Which scheduling approach suits multimedia playback best?
FCFS
SJF
Multilevel feedback queue
FIFO
