CS FundamentalsVery hardGATE CS
Five processes all arrive at time 0 in the order P1 (10), P2 (1), P3 (2), P4 (1), P5 (5) (bursts in ms). What is the average waiting time under Round Robin with quantum 1, 2 and 5 respectively?
- A. 7.4, 5.8, 5.4
- B. 5.4, 5.4, 7.4
- C. 5.4, 5.8, 9.6
- D. 5.4, 5.8, 7.4
Correct answer: D. 5.4, 5.8, 7.4
Simulating each quantum: q = 1: 5.4, q = 2: 5.8, q = 5: 7.4 ms. FCFS would give 9.6.
More Operating Systems questions
- Processes (arrival, burst): A (0, 3), B (2, 6), C (4, 4), D (6, 5), E (8, 2). By how much does SRTF reduce the average waiting time…
- Reference string: 2, 3, 2, 1, 5, 2, 4, 5, 3, 2, 5, 2, 3 frames, initially empty. What are the fault counts for FIFO, LRU and OPT?
- Reference string: 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5. How many faults does LRU give with 3 frames and with 4 frames (initially empty)?
- A computer has 48-bit virtual addresses, 4 KB pages and 8-byte PTEs. With a single-level page table, how large would one process's table…
- x86-64 style 4-level paging: TLB lookup 1 ns, memory access 60 ns, TLB hit ratio 99%, no page-walk caches. What is the effective access…
- Physical memory is 64 MB with 4 KB frames; virtual addresses are 32-bit. Each PTE holds a frame number plus 4 control bits, and PTE size…