CS FundamentalsModerateGATE CS · TCS Digital
Three processes with bursts 10, 5 and 8 ms arrive together at time 0 in the order P1, P2, P3 and are scheduled by Round Robin with a quantum of 2 ms. What is the average waiting time? (Ignore context-switch time.)
- A. 10.00 ms
- B. 12.00 ms
- C. 11.33 ms
- D. 7.67 ms
Correct answer: B. 12.00 ms
Completion times are P1 = 23, P2 = 15, P3 = 21, so waiting times are 13, 10, 13 and the average is 12.00 ms.
More Operating Systems questions
- Preemptive priority scheduling (lower number = higher priority) is used for P1 (arrival 0, burst 7, priority 3), P2 (1, 4, 1), P3 (2, 2…
- Processes P1 (arrival 0, burst 8), P2 (1, 4), P3 (2, 9) and P4 (3, 5) are scheduled by SRTF (preemptive shortest remaining time first)…
- Banker's algorithm: Available = (3, 3, 2). Allocation / Max for (A, B, C): P0 (0,1,0)/(7,5,3), P1 (2,0,0)/(3,2,2), P2 (3,0,2)/(9,0,2), P3…
- A system uses a two-level page table. A TLB lookup takes 10 ns, a memory access takes 100 ns and the TLB hit ratio is 80%. On a TLB miss…
- The reference string 1, 2, 3, 4, 1, 2, 5, 1, 2, 3, 4, 5 is run under FIFO replacement first with 3 frames and then with 4 frames (all…
- The head is at cylinder 50 moving towards higher cylinders, and the queue is 82, 170, 43, 140, 24, 16, 190. What is the total head…