Modify the existing csim mm1 simulation mm1csimc to read


Modify the existing CSIM M/M/1 simulation (mm1_csim.c) to read interarrival times from an input file. Let the mean service time be fixed to 1.0 seconds per customer. Create a file with 1 million exponentially distributed service time values such that the offered load to the queue is 80%. Run the simulation and submit a screenshot of the results. Submit also a listing of the key function (the generate()function) that you modified for this problem. Hint: You can use genexp.c (found on Christensen tools page) to generate exponentially distributed random variables.

Note that you will need to change the stopping criterion for the simulation. To do this make the following changes.

1) Add EVENT DoneEvent; to globals

2) Add DoneEvent = event(“Done event”); to CSIM initializations in main()

3) Change hold(SIM_TIME); to wait(DoneEvent); in main()

4) When you have read all the values from the input file (that is, you are at end-of-file condition) you will need to execute the line of code set(DoneEvent); to terminate the simulation You may also need to make minor changes to main() (especially to the output section) since lambda is no longer a parameter set in main().

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Modify the existing csim mm1 simulation mm1csimc to read
Reference No:- TGS0809169

Expected delivery within 24 Hours