A fully interactive, real-time CPU Scheduling Simulator designed to visualize and analyze operating system scheduling processes. The simulator enables users to run 5 classic CPU scheduling algorithms, view color-coded dynamic Gantt charts, and analyze overall performance metrics dynamically.
Visualization of Operating Systems processes execution is complex. Understanding preemption, CPU idle slices, and ready-queue ordering requires a clear, interactive visual Gantt timeline showing exactly when process switches occur.
Client-side state machine using React hooks. The simulation runs on pure JavaScript arrays, managing ready queues, sorting execution slices, and exporting performance statistics (TAT, WT). CSS transitions and Framer Motion handle animation.
Modeling textbook preemption schedules correctly when processes arrive during a running time slice (such as in Round Robin queue ordering), and avoiding viewport scroll clipping on mobile screens.
