Using the equation for Di + 1 in Example 4.19, write a C program requiring approximately 15 lines of code to simulate the M/M/1 queue with a mean interarrival time of 1 and a mean service time of 0.5. Run the program until 1000 Di’s have been observed and compute . The program should not require a simulation clock, an event list, or a timing routine.
Example 4.19
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.