My contributions to the CPU Scheduler for Operating Systems class
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Garrett Wilson be55ca20a7 updated README 1 year ago
.gitignore Discrete event simulation 4 years ago
AnalyzeOutput.py Allow averaging the averages 4 years ago
GenerateFiles.py More process dirs with dif max arrival time incs 4 years ago
README.md updated README 1 year ago
simulation.py More process dirs with dif max arrival time incs 4 years ago

README.md

CPU Scheduler Simulation

Running

To generate all the process files:

python3 GenerateFiles.py

To run the simulation (will take a while):

python3 simulation.py processes.50_10_5_5 results5
python3 simulation.py processes.50_10_5_500 results500

To show plots of the simulation results (argument is directory of all the CSV files), run the following then look in the newly-created *plots_{results5,results500}* directories:

python3 AnalyzeOutput.py results5
python3 AnalyzeOutput.py results500

Installing Python and libraries on Windows

Download and install Python 3 from Anaconda. Then run the following command in the terminal to install the one library that isn't installed by default:

conda install seaborn