Multithreaded-OS-Kernel

CPU-Scheduling-Algorithms

Profile Views

Status
License: MIT Code Coverage

An implementation of various CPU scheduling algorithms in C++. The algorithms included are First Come First Serve (FCFS), Round Robin (RR), Shortest Process Next (SPN), Shortest Remaining Time (SRT), Highest Response Ratio Next (HRRN), Feedback (FB) and Aging.

What is it?

A C++ project implementing classic CPU scheduling algorithms for simulation, analysis, and educational purposes. Includes FCFS, RR, SPN, SRT, HRRN, Feedback, and Aging. Outputs both trace and statistical results.


Table of Contents

Demo of Project on my Ubuntu LTS 24.04 Machine

alt text

Highlights of functionality


🔍 Why does this project exist?

In operating systems, CPU scheduling determines the order in which processes run. Understanding scheduling behavior is critical for performance tuning, fairness, and responsiveness in multitasking environments.

Most educational resources cover only theory. This tool fills the gap with practical, visualizable implementations of widely taught scheduling strategies.

🎯 Gaps it fills

🐞 What kinds of “bugs” or problems it can highlight?

📊 Metrics & Impact

Algorithms

First Come First Serve (FCFS)

Round Robin with varying time quantum (RR)

Shortest Process Next (SPN)

Highest Response Ratio Next (HRRN)

Feedback (FB)

Feedback with varying time quantum (FBV)

Aging

Input Format

Extending the Project


License

This project is licensed under the MIT License.
See the LICENSE file for details.


Author

Priyanshu Yadav
GitHub: priyanshscpp


© 2025 Priyanshu Yadav (priyanshscpp).
This project is licensed under the MIT License.
See the LICENSE file for details.