Question: 2nd try - With using: SIMULATION ASSIGNMENT: Process Scheduling Simulator William Stallings Copyright 2008 I need to be able to re-write the myrun.run file but
2nd try - With using: SIMULATION ASSIGNMENT: Process Scheduling Simulator William Stallings Copyright 2008 I need to be able to re-write the myrun.run file but cannot figure out how to do so. Please help me write the 20 processes.
With using the myexp.exp file written as such:
name myexp
comment This experiment contains 5 runs
run myrun algorithm FCFS key "FCFS"
run myrun algorithm SJF key "SJF"
run myrun algorithm RR 1 key "RR 1"
run myrun algorithm RR 5 key "RR 5"
run myrun algorithm RR 10 key "RR 10"
/* How do I modify the myrun.run so that there will be a total of 20 processes with the following properties.
- All processes arrive at time 0.0
- All processes have a constant duration of 100
- All have constant I/O burst of 10
- All have basepriority 1.0
- The first set of 10 processes have CPU burst uniformly distributed between 2 and 8
- The last set of 10 processes have CPU burst uniformly distributed between 30 and 40
- Do not change the seed line of the run file as this will change the sample space.
Example of 'myrun.run':
name myrun
comment This contains two types of processes
algorithm SJF
seed 5000
numprocs 10
firstarrival 0.0
interarrival constant 0.0
duration constant 100.0
cpuburst uniform 2.0 8.0
ioburst constant 10.0
basepriority 1.0
numprocs 10
firstarrival 0.0
interarrival constant 0.0
duration constant 100.0
cpuburst uniform 30.0 40.0
ioburst constant 10.0
basepriority 1.0
*/
//How do I modify the myrun file for 20 processes following the above directions?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
