Skip to content

Simulates Round Robin and Shortest-job-first scheduling algorithms in the terminal

Notifications You must be signed in to change notification settings

sm20/CPU-scheduling-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FUNCTIONALITY

Simulates Round Robin (RR) or Shortest-job-first (SJF) CPU scheduling algorithms in the command line when provided with an input file containing formatted descriptions of processes.
If the user wishes to simulate RR then they must provide an integer quantum as the third argument.
If the user wishes to simulate SJF then no third argument is required.
The program outputs a table depicting the time spent by each individual process as a function of the time. It also provides statistics on process waiting time.

INSTRUCTIONS

  1. compile: g++ scheduler.cpp
  2. If simulating RR run: ./a.out <text file> RR <quantum>
    -Where text file is the process description file and quantum is an integer time slice-
  3. If simulating SJF run: ./a.out SJF

About

Simulates Round Robin and Shortest-job-first scheduling algorithms in the terminal

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages