This repository contains implementations of various CPU scheduling algorithms using Python. Each algorithm is implemented as a separate function, and the scheduling behavior is visualized using a Gantt chart generated by Matplotlib.
- First-Come, First-Served (FCFS)
- Priority Scheduling
- Shortest Job First (SJF)
- Shortest Remaining Time First (SRTF)
-
Clone this repository:
git clone https://github.com/divysuthar/Scheduling_algorithm.git cd Scheduling_algorithm
You can run each scheduling algorithm independently by executing the corresponding Python script.
python fcfs.py
python priority_scheduling.py
python sjf.py