Free tools & games for everyone
Free · No sign-up · No accounts
Compare CPU scheduling methods on a Gantt chart, step through FIFO, LRU, optimal and clock page replacement, and try first, best and worst fit.
| Tab | Move between boxes, lists and buttons |
|---|---|
| Enter in a one-line box | Run the simulation |
These are the classic textbook models used in operating-systems courses. Ties go to the process that arrived first, then to the one listed first. Pre-emptive methods check at every arrival and keep the running process when there is a tie. In round robin, a process that arrives as a time slice ends joins the queue before the process whose slice just ended. Context switches take no time. Response time is the wait before a process first runs.
Page replacement fills empty frames first. LRU throws out the page unused for the longest time, optimal the page needed furthest in the future, and clock gives recently used pages a second chance. Memory allocation splits a block and leaves the rest as a hole; holes are not merged or moved. Real operating systems add many details, but the trade-offs are the same.
A fresh daily puzzle every morning, and new tools added every month.
Browse every product