Nepedia
Back to Discover
Independent Reader
💻

Thrashing (computer science)

technology Maturity 11-13 Next article →

A computer uses a part called RAM to hold data. This is its real memory. Sometimes, a computer runs out of RAM. It uses a trick called virtual memory to help. It moves data to a hard disk to save space. This is called paging.

When a program runs, it uses a group of data pages. This group is called a working set. If the working set is too big, the computer struggles. It must move data back and forth from the disk. This constant swapping is called thrashing.

During thrashing, the computer spends more time moving data than doing work. The CPU, which is the computer's brain, stays very busy. However, it is only busy with swapping. This makes the computer feel very slow. It may even stop working well.

This can happen if a program looks at data in a random way. It can also happen if many programs need memory at once. You can fix thrashing by closing some apps. This frees up memory. This lets the computer focus on its real jobs again.

178 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.