CS FundamentalsHardGATE CS
Round Robin with quantum 3 ms; processes (arrival, burst): P1 (0, 5), P2 (1, 3), P3 (2, 8), P4 (3, 6). What are the completion times of P1, P2, P3 and P4?
- A. 11, 6, 22, 19
- B. 14, 6, 20, 22
- C. 14, 6, 22, 20
- D. 14, 9, 22, 20
Correct answer: C. 14, 6, 22, 20
Gantt chart: P1 0-3 | P2 3-6 | P3 6-9 | P4 9-12 | P1 12-14 | P3 14-17 | P4 17-20 | P3 20-22. Read off each process's last slice.
More Operating Systems questions
- What values are printed (in any order)? (Every fork() succeeds.) c int main() { int x = 0; for (int i = 0; i < 2; i++) { if (fork() == 0)…
- A 32-bit system uses 2-level paging (10 + 10 + 12 bits, 4-byte PTEs, so every table is one 4 KB page). A process touches one byte in each…
- Disk with 100 cylinders (0–99); head at 50 moving up. Requests arrive in two batches: first 30, 70, 90; when the head reaches 70, new…
- A system has 3 identical printers. Processes P1, P2, P3 hold 1 printer each and each needs exactly 2 to finish; requests are made one at a…
- A program alternately computes for 20 ms and does disk I/O for 80 ms. With 4 such independent programs and the 1 − pⁿ model, what CPU…
- In a system with paging, a process's logical address space is 64 pages of 1 KB and physical memory is 32 frames. How many bits are in the…