https://github.com/tamoziit/round-robin-scheduling
Round Robin Scheduling Algorithm Simulation in C
https://github.com/tamoziit/round-robin-scheduling
linux mutex os round-robin-scheduler synchronization threads
Last synced: 5 months ago
JSON representation
Round Robin Scheduling Algorithm Simulation in C
- Host: GitHub
- URL: https://github.com/tamoziit/round-robin-scheduling
- Owner: Tamoziit
- License: apache-2.0
- Created: 2024-11-09T10:38:58.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-12-22T07:48:40.000Z (10 months ago)
- Last Synced: 2025-03-31T02:11:44.201Z (6 months ago)
- Topics: linux, mutex, os, round-robin-scheduler, synchronization, threads
- Language: C
- Homepage:
- Size: 29.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Round-Robin-Scheduling
Round Robin Scheduling Algorithm Simulation in C## Project Structure
- `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` and `queueDef.h`: Header files with type definitions for processes & queues.## Getting Started
1. Clone the repository:
```bash
git clone https://github.com/Tamoziit/Round-Robin-Scheduling.git2. Navigate to the root of your project directory & compile the program, use the following script:
```bash
gcc main.c table1.c processSorter.c ReadyQueue.c scheduler.c table2.c -o RR.out -lpthread3. Execute the program:
```bash
./RR.out