CS FundamentalsVery hardGATE CS · TCS Digital
The page reference string is 1, 2, 1, 3, 4, 1, 2, 5, 2, 1. Using a working-set window of the last 5 references, what is the size of the working set at the end of the string (after the final reference)?
- A. 4
- B. 5
- C. 3
- D. 2
Correct answer: C. 3
The window covers 1, 2, 5, 2, 1, whose distinct pages are 1, 2 and 5, so the size is 3.
More Operating Systems questions
- 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…
- 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?