Harold Guerrero
/
All projects

Process scheduling algorithms

C++ implementations of FCFS, SJF, Round Robin and STCF that simulate how an operating system shares the CPU.

September 2025
  • C++
  • Operating Systems
  • Algorithms

The challenge

Understand hands-on how an operating system decides which process gets the CPU, and how each policy affects waiting and response times.

The solution

I implemented four scheduling algorithms, each as a standalone program that reads a list of processes (arrival time and burst) and computes their execution:

The repository includes sample inputs to compare the results of each algorithm.

What I learned

The trade-offs between fairness, response time and CPU utilization, and how to model events over time with simple data structures.