CS FundamentalsVery hardGATE CS
Round Robin with quantum 3 ms is used for P1 (arrival 0, burst 5), P2 (1, 3), P3 (2, 8), P4 (3, 2) and P5 (4, 4). A process arriving during a running slice joins the ready queue before the preempted process is re-queued. At what time does P3 complete?
- A. 20 ms
- B. 22 ms
- C. 24 ms
- D. 18 ms
Correct answer: B. 22 ms
Timeline: P1 0-3, P2 3-6, P3 6-9, P4 9-11, P1 11-13, P5 13-16, P3 16-19, P5 19-20, P3 20-22. P3 finishes at 22 ms.
More Operating Systems questions
- Memory access takes 200 ns and servicing a page fault takes 8 ms. For the effective access time to degrade by no more than 10% over the…
- A segment table holds (base, limit): segment 0 = (1200, 700), segment 1 = (4000, 300), segment 2 = (3000, 500). Which logical address…
- A disk has an average seek time of 8 ms, rotates at 7,200 RPM and transfers data at 100 MB/s. Using the average rotational latency (half a…
- For the reference string 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1, 2, 3, 6 with 4 frames (initially empty), how many more page…
- In the standard five-state process model, which transition can NEVER happen directly?
- The data structure in which the OS keeps a process's program counter, register contents, state and open-file list is called the: