CS FundamentalsVery hardGATE CS (PYQ pattern)
Round Robin with quantum 3 ms, three processes arriving at t = 0 with bursts (CPU, I/O, CPU) in ms: P0 (5, 4, 4), P1 (3, 6, 3), P2 (6, 2, 2). Each process has its own I/O device; a process finishing I/O joins the tail of the ready queue, and when an I/O completion coincides with a quantum expiry, the I/O completion is queued first. At what time does the last process finish?
- A. 25 ms
- B. 21 ms
- C. 28 ms
- D. 23 ms
Correct answer: D. 23 ms
Unit-step simulation: completion times are {1: 17, 2: 22, 0: 23}; total CPU work is 23 ms, so the CPU is idle for 0 ms.
More Operating Systems questions
- Process P0 has 4 pages, each in its own frame. Copy-on-write fork is used (a frame is copied only when written while shared; a written…
- Shared x = y = 0. Thread 1: x = 1; y = 1. Thread 2: r1 = y; r2 = x. Thread 3: x = 2; r3 = x. Under sequential consistency, how many…
- A Unix file system contains only these names: directories /, /a, /a/b and /c, a regular file /a/f, and /c/g, which is a hard link to /a/f…
- A user-mode process accesses virtual pages with page-table entries (present, writable, user-accessible): page 0 (1,1,1), page 1 (1,0,1)…
- Locks are ordered L1 < L2 < L3 < L4 and every thread must acquire locks in increasing order. A thread acquires locks in the following…
- Memory (in KB, from address 0): OS 100, process A 150, hole 60, B 200, hole 90, C 120, hole 80, D 100, hole 100. Compaction slides every…