clanktron / rr-simulator

round-robin scheduling simulator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Round Robin Scheduler

This basic C program simulates round robin scheduling by calculating the corresponding waiting_time and response_time for each process. It takes a text file and quantum length as arguments.

Usage

# 1st arg must be text file with process info
# 2nd arg must be desired quantum length
./rr processes.txt 3

Processes File Format

The first line must be a single integer specifying the number of processes in the file. The following lines specify each processes metadata in the following format: PID, Arrival_Time, Burst_Time Example:

4
1, 0, 7
2, 2, 4
3, 4, 1
4, 5, 4

Build

make

Clean

make clean

Test

python -m unittest

About

round-robin scheduling simulator


Languages

Language:C 68.2%Language:Python 28.4%Language:Makefile 3.4%