This project implements various CPU scheduling algorithms, allowing users to choose between different strategies for managing process execution.
- First In First Out (FIFO)
- Shortest Job First (SJF)
- Priority Scheduling (ALG P)
- Shortest Remaining Time First (SR_F)
- Round Robin (RR)
To run this project, make sure you have Python 3 installed.
- Clone this repository:
git clone https://github.com/your_username/your_repository.git
- Navigate to the project directory:
cd your_repository - Run the main script:
python main.py
The program will display a menu in the terminal where you can select the scheduling algorithm to execute. For each option, process data will be requested, such as burst time, arrival time, and in some cases, priority.
For each process, you must enter:
- Burst Time: Process execution time.
- Arrival Time: The moment the process arrives in the system.
- Priority: Only applicable for priority scheduling.
For Round Robin, the time quantum will also be requested.
The program will execute the selected algorithm and display the scheduling results in the terminal.
📂 your_repository
│-- FIFO.py
│-- SJF.py
│-- ALG_P.py
│-- SR_F.py
│-- RR.py
│-- main.py
│-- README.md
FIFO.py,SJF.py,ALG_P.py,SR_F.py,RR.py: Contain the algorithm implementations.main.py: Contains the menu and main program logic.README.md: Project documentation.