CS FundamentalsHardGATE CS · Advanced

A process makes 18 page references (times 1 to 18): 2 4 4 3 4 2 4 5 2 5 5 2 1 1 3 5 4 1. The working set W(t, 5) is the set of distinct pages among the 5 most recent references up to and including time t. What is the sum of |W(t, 5)| over t = 5, 6, ..., 18?

  1. A. 50
  2. B. 49
  3. C. 43
  4. D. 46

Correct answer: D. 46

Slide the 5-reference window one step at a time and count distinct pages in each of the 14 windows; the total is 46.

More Operating Systems questions

Exams that ask this topic