Skip to content

A visualizer of CPU scheduling algorithms made in C.

Notifications You must be signed in to change notification settings

jard-io/cpu-scheduler-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CPU Scheduling Simulator

This project simulates several different process scheduling algorithms. The scheduler will be assigned a predefined set of tasks and will schedule the tasks based on the selected scheduling algorithm. Each task is assigned a priority and CPU burst. The following scheduling algorithms have been implemented:

  • First-come, first-served (FCFS), which schedules tasks in the order in which they request the CPU.
  • Shortest-job-first (SJF), which schedules tasks in order of the length of the tasks’ next CPU burst.
  • Priority scheduling, which schedules tasks based on priority.
  • Round-robin (rr) scheduling, where each task is run for a time quantum (or for the remainder of its CPU burst).
  • Priority with round-robin, which schedules tasks in order of priority and uses round-robin scheduling for tasks with equal priority.

Priorities range from 1 to 10, where a higher numeric value indicates a higher relative priority. For rr scheduling, the length of a time quantum is 10 milliseconds.

About

A visualizer of CPU scheduling algorithms made in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published