CS FundamentalsHardAccenture · Capgemini technical pattern
Under Highest Response Ratio Next (non-preemptive), the CPU becomes free at time 9. Ready processes (arrival, burst): P2 (2, 3), P3 (4, 6), P4 (6, 2). Which process runs next?
- A. P4
- B. P2
- C. P3
- D. P2 and P4 tie
Correct answer: B. P2
Response ratio = (waiting + burst) / burst. P2: (7 + 3)/3 ≈ 3.33; P3: (5 + 6)/6 ≈ 1.83; P4: (3 + 2)/2 = 2.5. P2 has the highest ratio. Pure SJF would pick P4; HRRN boosts jobs that have waited long.
More Operating Systems questions
- Reference string: 6, 1, 6, 2, 0, 1, 6, 4, 2, 1, 0, 4, 6. With 3 frames, initially empty, which set of page-fault counts is correct for…
- Disk cylinders 0–199; the head is at cylinder 100 and moving towards cylinder 0. Requests: 45, 130, 12, 180, 90, 150, 60. What is the…
- Working-set window Δ = 4 references. Reference string (times 1 to 10): 1, 2, 1, 3, 4, 4, 3, 5, 1, 2. What is the working set at time 6…
- In a two-process mutual-exclusion attempt, each process sets its own flag to true and then waits while the other’s flag is true; there is…
- A system runs 4 independent processes, each spending 80% of its time waiting for I/O. Assuming waits are independent, what is the…
- Processes (arrival, burst, priority — lower number is higher priority): P1 (0, 5, 3), P2 (1, 3, 1), P3 (2, 4, 4), P4 (4, 2, 2). Under…