When you have read all the values from the input file

Assignment Help Other Subject
Reference no: EM13541238

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().

Reference no: EM13541238

Questions Cloud

What flow rate of fresh water must they use to reduce : A bankrupt chemical firm has been taken over by new management. Onthe property they found a 25,000 m3 brine pondcontaining 20,000 mg/L of salt.
What kind of microorganism is most readily inactivated : Define the meaningof C•t product. In addition to Cand t, what factors influence the rate of chemical disinfection? What kind of microorganism is most readily inactivated byfree chlorine? What kind is most difficultto inactivate?
What is the speed-up of system a relative to system b : If system A can perform 100 operations per second and system B can perform 250 operations per second, what is the speed-up of system B relative to system A? What is the speed-up of system A relative to system B?
Run the simulation for a simulated 1 million seconds : Modify the existing CSIM M/M/1 simulation (mm1_csim.c) to have a second queue that has deterministic service time and change the generate()function to probabilistically split (with 50/50 probability – a coin flip) the generated customers to each queu..
When you have read all the values from the input file : 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
Plot a graph of relative error for simulation to theory : Using the mm1.c simulation program we discussed in class (and that is available for download via the class website),simulate the following offered loads for an M/M/1 queue: 50%, 60%, 70%, 80%, 85%, 90%, 91%, 92%, …, 98%. Fix the service time to be 1...
Consider a disk drive that transfers data in micro-blocks : Consider a disk drive that transfers data in micro-blocks of 5 bytes. There is a probability of bit error, p, for each block transferred (that is, each bit has a probability
Explain what an event list is what it contains : Explain what an event list is, what it contains, and how it is used by event routines. What type of data structure is used to implement an event list?
Describe two ways to test for independence : Will an RNG implemented using a linear congruential generator generate independent values for all lags? Explain your answer.

Reviews

Write a Review

Other Subject Questions & Answers

  Case of commuting and attractiveness of job,

In a tradeoff between two decision criteria such as case of commuting and attractiveness of job, can you use money as a common denominator to estimate precise tradeoffs?

  Provide examples of folkways

Provide examples of folkways that you learned growing up. Describe who taught you the folkway behavior and the consequences of not following the prescribed behavior.

  How to describe this data set

How to describe this data set 8, 9, 10,9,10,7,8,10,10,80. How will you describe the"average" score (mean,median,mode and why)? How will you describe the variability (range,standard deviation or both, and why?

  Explain why these two outcomes have exactly same probability

The pick 4 games in many state lotteries announce a four-digit winning number each day. The winning number is essentailly a four digit group from a table of random digits. You win if your choice matches the winning digits, in exact order.

  Heavy drinking affect individual health and well-being

However, moderate drinking is hard for some individuals. How does heavy drinking affect the individual's health and well-being?

  Comprise an assessment of how the internet or any other

write a 1000 word paper that discuss future trends in health care.a include an assessment of how the internet or any

  How do we visualize prisoners

How do we visualize prisons and how do we visualize prisoners? what social conflicts arise immediately? what is our involvement in the system? In what ways are we all responsible?

  Illustrate what trade-offs seem to have been made

One of best illustrations of trade-off also focus comes from shouldice hospital case. Look up their website also ask illustrate what trade-offs seem to have been made.

  The body of knowledge for the profession

Why do all managers and supervisors need to have knowledge and skills related to Human Resource management?

  The measure of two sides of an equilateral triangle are

the measure of two sides of an equilateral triangle are 3x15 inches and 7x-5 inches. what is the measure of the third

  Writing a fictional autobiography

Oscar is writing a fictional autobiography. he is combining real events with those that could have happened, as well as a few creative additions. in terms of the memory system,

  Summarize the evolution of the criminal justice system

Summarize the evolution of the criminal justice system in America. Identify and discuss at least three (3) key U.S. Supreme Court cases that have had a significant impact on the issue of individual rights versus public order, with respect to arrest, ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd