Case study 05 / 05Desktop Application

Schedulix
CPU Scheduling Simulator
Five CPU scheduling algorithms, with a Gantt chart you can read.
- Role
- Solo developer
- algorithms, architecture, UI
- Timeline
- 2025
- Desktop Application
- Status
- Open source
- Code on GitHub
- Core stack
- C++17 · Windows API
- SFML, CMake, Object-Oriented Programming
- Scheduling algorithms
- 5
- Interfaces (CLI + GUI)
- 2
- Modern C++
- C++17
01Overview
The problem, and what I built
The problem
Operating-systems scheduling is easy to memorise and hard to feel. Textbook tables do not show why one algorithm beats another on a given workload. Schedulix simulates the algorithms and visualises the result so the comparison is obvious.
What I built
A C++17 simulator for five CPU scheduling algorithms, with Gantt charts and waiting and turnaround times compared.
FCFS, SJF, SRTF, Round Robin and Priority scheduling, with accurate waiting and turnaround metrics.
A console build for quick tests and a GUI for interactive process management.
Real-time Gantt charts and reports comparing the algorithms side by side.
One class per algorithm, so adding a scheduler leaves the rest untouched.
02Architecture
How it fits together
Interfaces
- Console version (quick tests)
- GUI version (SFML / Windows API)
Core
- One class per algorithm
- FCFS · SJF · SRTF · Round Robin · Priority
- Waiting & turnaround metrics
Build
- C++17
- CMake
Built with
- C++17
- Windows API
- SFML
- CMake
- Object-Oriented Programming
03Decisions
Key engineering decisions
One class per algorithm
A modular, object-oriented design keeps each scheduler separate, so adding another algorithm does not touch existing code.
Trade-offMore boilerplate than a single switch statement, but each algorithm is easy to reason about on its own.
Two front ends, one core
A lightweight console build for quick tests and a GUI build for interactive process management.
Trade-offThe simulation core has to stay free of UI assumptions - which is what keeps it clean.
04Lessons
What was hard, and what I learned
What was hard
- Producing correct metrics for preemptive algorithms (SRTF, Round Robin), where a process can be interrupted many times.
- Drawing the Gantt chart in real time from the same data the metrics use, so the two can never disagree.
What I learned
- Separating simulation from presentation makes both easier to trust.
- Visualising an algorithm is the fastest way to find the flaw in your understanding of it.
05Outcome
Where it landed
A working simulator with performance analysis and algorithm-comparison reports for waiting and turnaround time.
