Thrashing A condition in which the system spends most of its time swapping pieces rather than executing instructions It happens when OS frequently throws out a piece just before it is used To avoid this, OS tries to guess, based on recent history, which pieces are least likely to be used in the near future7 Thrashing • A condition in which the system spends most of its time swapping pieces rather than executing instructions. • It happens when OS frequently throws out a piece just before it is used • To avoid this, OS tries to guess, based on recent history, which pieces are least likely to be used in the near future