Input
Next: Scheduling algorithm
Up: No Title
Previous: Simulating CPU scheduling
Input to your program will determine:
- whether or not the simulation is to be run in ``trace mode'',
in which case, diagnostic output will be generated
in addition to the final statistics
- the duration of the simulation
- the number of CPUs
- maximum slice of CPU time that a process can have in one turn.
(Note that by choosing a very large maximum time slice, one
gets the effect of having no limit on the amount of CPU time a process
can have in one turn.)
- the average amount of time between ``arrivals'' of processes
- the average amount of time required for a process
The actual amount of time before the arrival of the next process,
and the amount of CPU time it requires,
will be randomly determined, based on an exponential distribution
(with averages as given in the input to the program).
The code that deals with these distributions has been written
for you (see below).
We will not specify any particular units for time (for example,
microseconds or nanoseconds), but will just assume that all time values
are to be interpreted as in the same units.
Diane Horton
Mon Dec 11 15:56:16 EST 1995