Spencer Poisseroux

<–– Back

[Java] CPU scheduler simulator

a single core CPU process scheduler simulation created in Java from scratch


parameter files

sim2

the parameter files were formatted to specify these parameters (in milliseconds):

  • total simulation time
  • quantum time
  • context switch
  • average process length
  • average creation length
  • IO bound process time
  • average IO service time

length of time from average times were randomly generated from a standard deviation


running params1.txt

sim1


results of params1.txt

sim3

The results show the overall statistics, as well as the statistics for CPU-bound and IO-bound processes individually

[code]