CS FundamentalsVery hardGATE CS
Processes (arrival, burst): A (0, 6), B (2, 6), C (5, 9), D (5, 8), E (5, 2). Under non-preemptive HRRN, what is the average waiting time?
- A. 6.6 ms
- B. 10.2 ms
- C. 7.4 ms
- D. 13.6 ms
Correct answer: C. 7.4 ms
HRRN schedule: A 0-6 | B 6-12 | E 12-14 | D 14-22 | C 22-31. At t = 6, B (4+6)/6 ≈ 1.67 beats E (1+2)/2 = 1.5, C and D. At 12: E (7+2)/2 = 4.5 wins. At 14: D (9+8)/8 = 2.125 beats C (9+9)/9 = 2. Average waiting = 7.4 (SJF gives 6.6).
More Operating Systems questions
- Two processes each alternate CPU and I/O: P1 = CPU 4, I/O 6, CPU 2; P2 = CPU 3, I/O 3, CPU 5 (ms). Both arrive at 0, P1 first; scheduling…
- Reference string: 7, 2, 3, 1, 2, 5, 3, 4, 6, 7, 7, 1, 0, 5, 4, 6, 2, 3, 0, 1. With 3 frames (initially empty), what are the page-fault…
- Reference string: 1, 2, 1, 3, 1, 2, 4, 5, 4, 2, 5, 3, 4, 2, 3 frames, initially empty. LFU replacement is used: the victim is the resident…
- Reference string: 0, 4, 1, 4, 2, 4, 3, 4, 2, 4, 0, 4, 1, 4, 2, 4, 3, 4. How many page faults does LRU give with 2, 3, 4 and 5 frames…
- TLB access 2 ns (looked up first), memory access 50 ns, two-level page table, TLB hit ratio 98%. A fraction 10⁻⁵ of ALL accesses…
- A machine has 57-bit virtual addresses (5-level paging style), 4 KB pages and 8-byte page-table entries, with every page table fitting in…