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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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