Nepedia
Back to Discover
Independent Reader
💻

Scheduling (computing)

technology Maturity 7-9 war conflict Next article →

This article covers sensitive topics: war_conflict. Parents can manage visibility in Parental Controls.

Computers have many jobs to do at once.

Thread pool
Thread pool

To manage these jobs, they use a scheduler. A scheduler is a part of the computer system that assigns resources to tasks. Resources can be parts like the CPU, which is the brain of the computer. The scheduler makes sure these parts stay busy. It also helps many users share the same computer fairly.

There are different kinds of schedulers. A long-term scheduler decides which jobs are allowed to enter the system. It picks a mix of jobs that use the CPU and jobs that use other parts. This keeps the system balanced. A medium-term scheduler moves jobs in and out of the main memory. This is called swapping.

Simplified Structure of the Linux Kernel
Simplified Structure of the Linux Kernel

A short-term scheduler makes very fast decisions. It picks which job runs right now.

Some schedulers are preemptive. This means they can stop a running job to start a new one. Others are cooperative. These can only stop a job if the job lets them. A special part called a dispatcher then gives control to the new job. Schedulers use different rules to work. One rule is called first-come, first-served. This means jobs are handled in the order they arrive.

202 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (2)
File:Thread pool.svg
Thread pool.svg
File:Simplified Structure of the Linux Kernel.svg
Simplified Structure of the Linux Kernel.svg
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.