CS FundamentalsHardGATE CS

A process reads a file sequentially, and the OS detects this. Which buffer-cache policy is most appropriate?

  1. A. Strict LRU for the file's pages
  2. B. Disable caching for all other files
  3. C. Write-through for reads
  4. D. Read-ahead plus free-behind (drop pages just used), since they will not be reused soon

Correct answer: D. Read-ahead plus free-behind (drop pages just used), since they will not be reused soon

For a sequential stream, prefetching hides disk latency, and recently used pages are the least likely to be needed again, so LRU is the wrong choice; free-behind (or MRU-like) avoids polluting the cache.

More Operating Systems questions

Exams that ask this topic