Professor
I. Rudowsky
CIS 25 EW6
MOSS Scheduling
Simulation Due
The MOSS scheduling
simulator illustrates the behavior of scheduling algorithms against a simulated
mix of process loads. The user can specify the number of processes, the mean
and standard deviation for compute time and I/O blocking time for each process,
and the duration of the simulation. At the end of the simulation a statistical
summary is presented.
You will need Java to run the simulation. To install
Java, go to the webpage
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html.
You will first download the Java SDK and then run the sample HelloWorld application to test that everything is in
working order.
Next, go
to http://www.ontko.com/moss/ where
you will find installation instructions, a user guide and the source code
archive for the Scheduling Simulator. Download the code and run the test
to make sure the simulation works properly.
1.(a) Create a configuration file in which all processes run
an average of 2000 milliseconds with a standard deviation of zero. Using 2 processes, pick your own value for I/O block time. Run the
simulation for 10,000 milliseconds.
(b) Run a
similar simulation for 5 processes. Remember to add a separate line for each
process’ blocking time.
(c) Run a
similar simulation with 10 processes.
2. Repeat steps 1(a), 1(b) and 1(c) but now use
a standard deviation of 1000.
For each of
the six simulations, examine the two output files, Summary-Results and
Summary-Processes. Using the output in these files, create a chart that
contains the following information for each process: process number, CPU time,
I/O blocking time, CPU completed, CPU blocked, Time completed (i.e., when the
process was finished executing).
Summarize the
results of the six simulations and explain the changes between the different
runs.