If you open too many Chrome tabs and massive video editing programs at the same time, your computer might suddenly freeze. The mouse becomes unresponsive, and you can hear your hard drive spinning aggressively. Your system is experiencing Thrashing.
Thrashing occurs when an operating system spends more time paging (swapping pages in and out of the hard disk) than executing actual user code.
To prevent thrashing, the OS must provide a process with as many frames as it actually needs. But how does it know how many it needs? It uses the Working-Set Model.
The working-set model is based on the assumption of Locality. As a process executes, it moves from locality to locality. A locality is a set of pages that are actively used together.
The Working Set is the set of pages in the most recent $\Delta$ (delta) page references. It is an approximation of the program's locality.
If $D > m$, the OS prevents thrashing by aggressively suspending (swapping out) one of the processes entirely, freeing up its frames to satisfy the working sets of the remaining active processes.
The Hardware Solution: The easiest and most common way to fix a computer that chronically thrashes is simply to buy and install more physical RAM!