Round Robin Scheduling Algorithm Simulation in C
main.c
: The main control file that initializes & creates threads, and manages scheduling.table1.c
: Displays initial process information.processSorter.c
: Contains functions for sorting processes based on arrival time.ReadyQueue.c
: Implements a queue data structure for process management.scheduler.c
: Contains the logic for the scheduling algorithm.scheduler2.c
: Alternative Scheduling logic for testing purpose.table2.c
: Displays the final process table with computed metrics.processDef.h
andqueueDef.h
: Header files with type definitions for processes & queues.
- Clone the repository:
git clone https://github.com/Tamoziit/Round-Robin-Scheduling.git
- Navigate to the root of your project directory & compile the program, use the following script:
gcc main.c table1.c processSorter.c ReadyQueue.c scheduler.c table2.c -o RR.out -lpthread
- Execute the program:
./RR.out