CS FundamentalsVery hardGATE CS
Highest Response Ratio Next (non-preemptive; ratio = (waiting + burst) / burst). Processes (arrival, burst): A (0, 8), B (1, 4), C (2, 2), D (3, 6), E (4, 3). In what order do they run?
- A. A, C, E, B, D
- B. A, C, B, D, E
- C. A, B, C, E, D
- D. A, C, B, E, D
Correct answer: D. A, C, B, E, D
At 8: C has (6 + 2)/2 = 4, the highest. At 10: B has 13/4 = 3.25, E 9/3 = 3, D 13/6. At 14: E has 13/3 ≈ 4.33 and D 17/6 ≈ 2.83, so E then D.
More Operating Systems questions
- A multilevel feedback queue has Q0 (RR, quantum 2), Q1 (RR, quantum 4) and Q2 (FCFS); a job that uses its full quantum drops one level…
- Reference string: 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9, 3 with 3 frames, initially empty. How many page faults occur under FIFO…
- For the reference string 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5, 8, 9, 7, 9, 3, going from 3 frames to 4 frames changes the FIFO fault count from…
- A system has 40-bit virtual addresses, 8 KB pages and 4-byte page-table entries, and every page-table level must fit in one page. How many…
- TLB lookup takes 10 ns and is done first; memory access takes 100 ns; paging is two-level; the TLB hit ratio is 90%. Ignoring page faults…
- Memory access takes 200 ns and servicing a page fault takes 8 ms. To keep the effective access time within 10% of 200 ns, at most about…