Nepedia
Back to Discover
Independent Reader
💻

Preemption (computing)

technology Maturity 9-11 Next article →

A computer can do many jobs at once. This is called multitasking. Sometimes, one job must stop so another can work. This is called preemption. An external scheduler manages this. A scheduler is a part of the system that picks which job runs next. It can pause a task without the task's help. This pause and restart is called a context switch.

The scheduler gives each task a tiny bit of time. This bit of time is called a time slice. The scheduler runs every time a slice ends. This lets every job get some time on the CPU. The CPU is the main brain of the computer.

Preemption helps a computer stay fast. It lets the system handle important new data right away. Some jobs wait for things like a keyboard or a disk. These are called I/O bound tasks. The system can put these tasks on hold. This lets other jobs use the CPU instead. Most modern systems use this. This includes Windows, Linux, and macOS.

170 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.