CS FundamentalsHardWipro · Cognizant technical pattern

Working-set window Δ = 4 references. Reference string (times 1 to 10): 1, 2, 1, 3, 4, 4, 3, 5, 1, 2. What is the working set at time 6 (covering references 3 to 6)?

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

Correct answer: A. {1, 3, 4}

References 3–6 are 1, 3, 4, 4, so the distinct pages are {1, 3, 4} (size 3). Including page 2 uses a window of 5; {4, 3, 5} looks at references 6–8 instead.

More Operating Systems questions

Exams that ask this topic