Skip to main content
Intermediateconceptual

What is thrashing in an operating system, and how can it be prevented?

ReportedSource: GeeksforGeeks interview experience: Microsoft SDE-I, 1+ year

Quick answerFree

Thrashing: constant paging because total working sets exceed RAM, so CPU idles on page faults. Fix with working-set admission, page-fault-frequency allocation, fewer processes or more memory.

Detailed answer· ~160 words

Interview Prep

Unlock the full answer with Interview Prep

Get a ~160-word model answer, plus 9 more Operating Systems questions.

Also in Pro (₹499 / 90 days).

+ 9 more Operating Systems questions in Interview Prep, each with the full answer.

Discussion