Question 51
MediumIn a multilevel feedback queue, what typically happens to a process that uses up its whole time quantum?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
In a multilevel feedback queue, what typically happens to a process that uses up its whole time quantum?
It is terminated
It moves up to a higher-priority queue
It stays in the same queue forever
It moves down to a lower-priority queue
Sign up free to see the answer and a step-by-step explanation.
Why do interactive systems usually favour I/O-bound processes?
They never wait for I/O
They need the CPU only briefly, and giving it to them quickly keeps the system responsive
They use more CPU time
They have no deadlines
Sign up free to see the answer and a step-by-step explanation.
What is the main problem with priority scheduling, and what is its usual fix?
Low-priority processes may starve; aging raises their priority over time
It is too fair; quanta fix it
It has no overhead; adding switches fixes it
It runs in arrival order; sorting fixes it
Sign up free to see the answer and a step-by-step explanation.
In Round Robin, what is a good rule of thumb for choosing the time quantum?
Equal to the longest burst
Exactly 1 ms always
Most CPU bursts should be shorter than the quantum, but it should be much longer than the context-switch time
As small as possible
Sign up free to see the answer and a step-by-step explanation.
Using SRTF (preemptive SJF), what is the average waiting time for these processes (arrival, burst): P1 (0, 8), P2 (1, 4), P3 (2, 9), P4 (3, 5)?
7.75 ms
6.5 ms
8 ms
5.5 ms
Sign up free to see the answer and a step-by-step explanation.
Five processes arrive at time 0 (burst, priority; a lower number is a higher priority): P1 (10, 3), P2 (1, 1), P3 (2, 4), P4 (1, 5), P5 (5, 2). What is the average waiting time under non-preemptive priority scheduling?
7.4 ms
8.2 ms
6.2 ms
9.6 ms
Sign up free to see the answer and a step-by-step explanation.
P1 (5 ms), P2 (3 ms) and P3 (1 ms) arrive at time 0. With Round Robin and a 2 ms quantum, what is the average turnaround time?
6 ms
7.33 ms
8 ms
5.67 ms
Sign up free to see the answer and a step-by-step explanation.
Why can't SJF be implemented exactly in a real CPU scheduler?
It needs too much memory
It can only schedule two processes
The length of the next CPU burst isn't known in advance
It always causes deadlock
Sign up free to see the answer and a step-by-step explanation.
Burst prediction uses τₙ₊₁ = α·tₙ + (1 − α)·τₙ. With α = 0.5, a previous prediction τₙ = 10 ms and an actual burst tₙ = 6 ms, what is the next prediction (in ms)?
Enter a number as the answer.
Sign up free to see the answer and a step-by-step explanation.
Which of these scheduling algorithms are preemptive? (Select all that apply.)
Shortest Remaining Time First
Round Robin
FCFS
Preemptive priority
Sign up free to see the answer and a step-by-step explanation.