Homework 1: Discrete-Event SimulationHints, Partial solution, Suggested format of Log File, Directions for mailing homework to Lab Instructor,
Write in C a program to do the discrete-event simulation of a system representing a dentist's office. We assume that there is a dentist and a nurse and that we have five types of patients:
Thus the situation is as described in the following queueing network:
+<----------------------------------------------+
| ^
SWITCH1 v ----+ +--+ SWITCH2 |
INPUT ---->x----+-->||||------>| |---->x------------------------>+---> OUTPUT
| ----+ +--+ | | ^
| QUEUE1 SERVER1 | | |
| | SWITHC3 +-+
v (nurse) v ----+ +--+ |
x--------------------------->x---->||||---->| |---->x
----+ +--+
QUEUE2 SERVER2
(dentist)
where SERVER1 is the nurse and SERVER2 is the dentist. QUEUE1 and QUEUE2
are, respectively, waiting rooms for the nurse and for the dentist.
The user is asked at run time to specify:
Determine:
Run the program a number of times with different values for the parameters and random seed. Examine in correspondence the utilizations and queue sizes. If for a given choice of parameters by changing the random seed we obtain utilization and size values that are stable [i.e. do not change much, say, change at most 10%], then we have a good simulation.
Mail the homework to the TA. Be sure to receive within 24 a message back from the TA confirming that he has received the homework. If you do not receive the reply from the TA contact both the instructor and the TA.
ingargiola@cis.temple.edu