CS FundamentalsHardProduct-company MCQ pattern

Reference string (times 1 to 14): 3, 5, 3, 1, 4, 4, 2, 1, 1, 6, 6, 6, 2, 5. With working-set window Δ = 4 references, what is the working set at time 12 (i.e. just after the 12th reference)?

  1. A. {6}
  2. B. {1, 6}
  3. C. {1, 2, 6, 4}
  4. D. {2, 1, 6}

Correct answer: B. {1, 6}

The window covers references 9–12: 1, 6, 6, 6. Distinct pages = {1, 6}, so the working-set size is 2. Including reference 13 (page 2) uses the wrong window.

More Operating Systems questions

Exams that ask this topic