Question 71
HardWhich scheduling algorithm best suits a time-sharing system where every user expects quick responses?
- A.
Round Robin
- B.
FCFS
- C.
Non-preemptive SJF
- D.
Shortest job last
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Which scheduling algorithm best suits a time-sharing system where every user expects quick responses?
Round Robin
FCFS
Non-preemptive SJF
Shortest job last
Sign up free to see the answer and a step-by-step explanation.
How does aging prevent starvation in priority scheduling?
It kills old processes
It lowers the priority of new processes
It gradually raises the priority of processes that have waited a long time
It makes all priorities equal
Sign up free to see the answer and a step-by-step explanation.
In a multilevel feedback queue, what usually happens to a process that uses up its whole time quantum?
It moves up to a higher queue
It is terminated
It moves down to a lower-priority queue with a longer quantum
It stays in the same queue forever
Sign up free to see the answer and a step-by-step explanation.
Using exponential averaging with α = 0.5, the previous prediction was 10 ms and the actual burst was 6 ms. The next actual burst is 4 ms. What is the prediction after that burst?
5 ms
7 ms
6 ms
8 ms
Sign up free to see the answer and a step-by-step explanation.
What is CPU utilisation if the CPU is idle 15 ms out of every 120 ms?
88%
12.5%
87.5%
85%
Sign up free to see the answer and a step-by-step explanation.
Which metric matters most for interactive users?
Throughput
Turnaround time of batch jobs
Response time
CPU utilisation
Sign up free to see the answer and a step-by-step explanation.
What does the Linux Completely Fair Scheduler (CFS) try to give each runnable process?
First-come, first-served order
Strict priority with no fairness
Fixed equal time slices only
A fair share of CPU time, tracked as virtual runtime
Sign up free to see the answer and a step-by-step explanation.
In real-time scheduling, what does Earliest Deadline First (EDF) do?
Runs the task whose deadline is soonest
Runs tasks in arrival order
Runs the shortest task
Runs the task with the longest period
Sign up free to see the answer and a step-by-step explanation.
In Rate-Monotonic scheduling, which task gets the highest priority?
The one with the longest burst
The one with the shortest period
The one that arrived first
The one with the longest period
Sign up free to see the answer and a step-by-step explanation.
Three processes with bursts 2, 4 and 8 ms all arrive at time 0. What is the average turnaround time under SJF?
8 ms
7.33 ms
6 ms
4.67 ms
Sign up free to see the answer and a step-by-step explanation.