/round-robin-scheduling

A round robin scheduling with OpenGL visualization

Primary LanguageCMIT LicenseMIT

GitHub language count GitHub repo size GitHub last commit GitHub


Logo

Round Robin Scheduling

A round robin simulation with visualization in opengl

Made with c Made with c

Table of Contents
  1. About The Project
  2. How To Run
  3. Visualization

ℹ️ About The Project

In this project, we implemented the round robin scheduling algorithm that "slices" the process for better perfomance at the CPU.

We also provide a visualization of the CPU and how the process are arrenged in OpenGL

rr

🚀 How To Run

Just in terminal

  • You have to comment the first line of main.c for this to work
# Clone the repository
$ git clone https://github.com/WebisD/round-robin-scheduling.git

# Access the project folder in your terminal / cmd
$ cd round-robin-scheduling

# Compile the application
$ gcc -o main main.c

# Run the application
$ ./main

With opengl visualization

# Clone the repository
$ git clone https://github.com/WebisD/round-robin-scheduling.git

# Access the project folder in your terminal / cmd
$ cd round-robin-scheduling

# Install dependencies for opengl
$ sudo apt-get install freeglut3 freeglut3-dev mesa-common-dev

# Compile the application
$ gcc -o main main.c -lglut -lGL -lGLU

# Run the application
$ ./main

💻 Visualization

rr

Zoom in and zoom out

Use the up arrow in your keyboard to zoom in

Use the down arrow in your keyboard to zoom out

Scrolling

Use the scroll wheel of your mouse 🖱️ to move the cpu for better view