Question 41
MediumProcesses (arrival time, burst time in ms): P1 (0, 8), P2 (2, 3), P3 (4, 1), P4 (5, 4). Under Round Robin with a 3 ms quantum, at what time does P4 finish?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
Processes (arrival time, burst time in ms): P1 (0, 8), P2 (2, 3), P3 (4, 1), P4 (5, 4). Under Round Robin with a 3 ms quantum, at what time does P4 finish?
10 ms
18 ms
16 ms
14 ms
Sign up free to see the answer and a step-by-step explanation.
Processes (arrival time, burst time in ms): A (0, 5), B (0, 3), C (0, 7), D (0, 2). What is the average waiting time under non-pre-emptive SJF?
7.5 ms
7 ms
4.25 ms
8.25 ms
Sign up free to see the answer and a step-by-step explanation.
Processes (arrival time, burst time in ms): A (0, 5), B (0, 3), C (0, 7), D (0, 2). What is the average turnaround time under Round Robin with a 2 ms quantum?
8.5 ms
11.75 ms
11.25 ms
12.5 ms
Sign up free to see the answer and a step-by-step explanation.
Processes (arrival time, burst time, priority in ms): P1 (0, 4, 3), P2 (1, 3, 1), P3 (2, 5, 4), P4 (3, 2, 2). What is the average waiting time under non-pre-emptive priority scheduling (a smaller number means higher priority)?
3.5 ms
4.25 ms
4.5 ms
3.25 ms
Sign up free to see the answer and a step-by-step explanation.
Processes (arrival time, burst time in ms): J1 (0, 7), J2 (3, 2), J3 (5, 4), J4 (6, 1). Under non-pre-emptive SJF, at what time does J3 finish?
12 ms
13 ms
14 ms
16 ms
Sign up free to see the answer and a step-by-step explanation.
Processes (arrival time, burst time in ms): J1 (0, 7), J2 (3, 2), J3 (5, 4), J4 (6, 1). What is the average waiting time under SRTF (pre-emptive SJF)?
3 ms
2.75 ms
3.75 ms
2 ms
Sign up free to see the answer and a step-by-step explanation.
Why can Shortest Job First cause starvation?
Short jobs never get the CPU
It uses a fixed time quantum
It runs jobs in arrival order
A long job may wait indefinitely if shorter jobs keep arriving
Sign up free to see the answer and a step-by-step explanation.
Which scheduling algorithm is optimal for minimising average waiting time when all jobs are available at time 0 and pre-emption is allowed?
SRTF
Longest Job First
FCFS
Round Robin
Sign up free to see the answer and a step-by-step explanation.
What happens to Round Robin's behaviour as the time quantum becomes very large?
It causes starvation
It stops working
It behaves like SJF
It behaves like FCFS
Sign up free to see the answer and a step-by-step explanation.
Which metric does a batch system care about most?
Response time
Throughput
Screen refresh rate
Fairness to interactive users
Sign up free to see the answer and a step-by-step explanation.