Unit-Isingle Channel Queue
Unit-Isingle Channel Queue
Chapter-02
Discrete-Event System Simulation Md. Sazzadur Ahamed
-Jerry Banks Senior Lecturer
Dept. of CSE
Simulation of Queuing System Daffodil Int. University
Single Channel Queue
1
Simulation Examples
◼ Construct a simulation table. Each simulation table is different, for each is developed
for the problem at hand.
◼ For each repetition i, generate a value for each of the p inputs, and evaluate the
function, calculating a value of the response yi. The input values may be computed by
sampling values from the distributions determined in step 1. A response typically
depends on the inputs and one or more previous responses.
2
Simulation Table
• The simulation table provides a systematic method for tracking system state over time.
Inputs Response
·
·
3
Simulation of Queuing Systems
Server
Waiting Line
Calling population
• A queueing system is described by its calling population, the nature of the arrivals,
the service mechanism, the system capacity, and the queueing discipline.
4
Simulation of Queuing Systems
• Service times are of some random length according to a probability distribution which
does not change over time.
• The system capacity has no limit, meaning that any number of units can wait in line.
• Finally, units are served in the order of their arrival (often called FIFO: First In, First
out) by a single server or channel.
5
Simulation of Queuing Systems
• System state : the number of units in the system and the status of the server(busy or
idle).
• Event : a set of circumstances that cause an instantaneous change in the state of the
system.
◼ In a single-channel queuing system there are only two possible events that can affect
the state of the system.
the arrival event : the entry of a unit into the system
the departure event : the completion of service on a unit.
6
Simulation of Queuing Systems
• If a unit has just completed service, the simulation proceeds in the manner shown in the
flow diagram of Figure 2.2.
◼ Note that the server has only two possible states : it is either busy or idle.
Departure
Event
7
Simulation of Queuing Systems
Arrival
Event
8
Simulation of Queuing Systems
9
Simulation of Queuing Systems
10
Simulation of Queuing Systems
• The interarrival times and service times must be meshed to simulate the single-channel
queuing system.
• Table 2.4 was designed specifically for a single-channel queue which serves customers on a
first-in, first-out (FIFO) basis.
11
Simulation of Queuing Systems
12
Simulation of Queuing Systems
Figure 2.6 depicts the number of customers in the system at the various clock
times.
13
Thank you
14