Process Scheduler Project
This project is designed to simulate process scheduling algorithms and provide insights into the performance of these algorithms. Follow the steps below to execute the program successfully.
Clone the repository to your local machine:
git clone [repo_url]
Navigate to the project directory:
cd /file_path
Ensure the necessary binaries are generated by running the following command:
./make
There are two ways to generate your Random processes:
- Console : Compile and execute the generateRandomProcesses.c program as follow
gcc -o generateRandomProcesses generateRandomProcesses.c
chmod a+x generateRandomProcesses
./generateRandomProcesses
- Interface: Qt Designer first make sure to have python installed in your device then install the necessary dependencies as follow:
sudo apt-get install python3-pip
sudo apt-get install python3
pip install PyQt5
pip install PyQt5-tools
sudo apt install qttools5-dev-tools
Now you can execute the following command to run the interface:
python3 code.py
And now you are ready to generate you file
Now, you can execute the main program with the generated processes.txt file:
./main ./processes.txt
Follow on-screen prompts to select a scheduling algorithm.
Upon completion, the program will display:
- Processes Table
- Turnaround data
- Gantt chart of the chosen algorithm
Interact with the program as instructed on the console. Exemple of execution with FIFO algorithm