Due: See class webpage.
This queueing system is used by the cashiers in Walmart and was illustrated by the following simulation program: click here
This queueing system is used by the tellers at banks and at airline checking. You will write a simulation program to simulate this queueing system and then use it to find out if there is any difference in average delay of the customers in a shared queue system and in a separate queue system when the number of servers are equal.
So the simulation will let you answer the question "does it make a difference how you organize the queue ?"...
The following figure shows the queueing system that the simulation will model:
The simulation model can be written using the following ProSim4 entities:
Clients enqueue in the queue of the Client Distributor entity. When a server becomes idle (has just finished servicing a client), it wake up the Client Distributor entity to tell it that the Client Distributor entity can send a client to a server if there are some clients waiting.
Use the RateExponential() random number distribution
Also use the RateExponential() random number distribution here.
main Simlength #Servers Arrivalrate ServicerateExample, to simulate a 4 server system where each server can service 1 client per time unit and 3.5 clients arrive per time unit for 10000 time units, you execute:
main 10000 4 3.5 1.0
Compare the performance of this common queue system against the separate queue system in main6.c. Use for example 4 servers and and service rate of 1 client per time unit. Try using various client arrival rates, ranging from very small arrival rates (e.g., 0.1) to close to the system capacity of 4 clients per time unit.
Turn the following in using the following turnin codes:
/home/cs584000/turnin Makefile pj2
/home/cs584000/turnin main.c pj2-1