Simulating A Single Server Queue Using The Q Simulator
Simulating A Single Server Queue Using The Q Simulator
net/publication/316974036
CITATIONS READS
0 2,188
1 author:
SEE PROFILE
Some of the authors of this publication are also working on these related projects:
Ghana Association of University Women sponsored Science Clinic for Girls View project
All content following this page was uploaded by Irene Kafui Vorsah Amponsah on 16 May 2017.
Abstract—This paper introduces a technique for simulating a Their analysis and simulation work gave insight into
single-server exponential queuing system. The technique called the predicting the system performance and behavior when
Q-Simulator is a computer program which can simulate the effect of employing a certain interrupt-handling scheme. Similarly,
traffic intensity on all system average quantities given the arrival Shaul K. Bar-Lev et al (2007), [6] conducted a research on the
and/or service rates. The Q-Simulator has three phases namely: the
applications of bulk queues to group testing models with
formula based method, the uncontrolled simulation, and the
controlled simulation. The Q-Simulator generates graphs (crystal incomplete identification. They discussed some assumptions
solutions) for all results of the simulation or calculation and can be that gave rise to the bulk queuing model M/G ( m, M ) / 1,
used to estimate desirable average quantities such as waiting times, where m and M > m are the decision variables where each
queue lengths, etc.
batch size can be between m and M. They computed the
International Science Index, Computer and Information Engineering Vol:6, No:6, 2012 waset.org/Publication/5290
Keywords—Automation system-Simulator, Simulation, Single- optimal values of the decision variables ( m, M ) that
server exponential system maximize the expected profit. Abolnikov et al (1993), [1] also
in a related publication, researched on a multilevel control
I. INTRODUCTION bulk queuing system with vacationing server. This article
studied a Markov chain describing the evolution of the queue
E STIMATION of waiting times and other steady-state
average quantities at service points such as banks, airports, in a general single-server bulk queuing system with
continuously operating (or, equivalently vacationing) server,
restaurants, theatres, post offices, and traffic lights has always
semi-Markov modulated compound Poisson input, queue
been an objective in the study and analysis of queues. Based
length dependent service time, and multilevel control server
on models developed, statistical simulation can be performed.
capacity. The studies established a necessary and sufficient
Statistical simulation is driven by a stream of randomly criterion for ergodicity of this Markov chain and found its
generated instructions, based on statistics collected during a stationary distribution. As an example a single-server queuing
single detailed simulation. This method can give accurate system was considered, and some explicit results were
performance estimates within minutes, allowing a large design obtained in this case. Kumar et al (2002),[3] carried out a
space to be simulated quickly. And of course, real data is research concerned with the analysis of a single-server queue
always used to validate the results of the simulation. with Bernoulli vacation schedules and general retrial times. It
A common approach to estimating these quantities is to was assumed that the customers, who found the server busy,
develop statistical models to estimate and write computer were queued in the orbit in accordance with an FCFS (first-
programs to stimulate queues in order to find optimal come-first-served) discipline and only the customer at the head
solutions. S. Nussbaum and J. E. Smith (2002),[4] did prior of the queue was allowed access to the server. They first
work that applied this technique to superscalar processors. presented the necessary and sufficient condition for the system
They evaluated the extension of statistical simulation to to be stable and derived analytical results for the queue length
Symmetric Multiprocessing (SMP) systems. Key program distribution, as well as some performance measures of the
parameters are identified, and program statistics are collected system under steady-state condition. They showed that the
during detailed simulations for both multi-programmed general stochastic decomposition law for M/G/1 vacation
workloads (SpecInt) and parallel scientific workload (Splash- models holds for the present system also. Some special cases
were also studied. These and other related studies can be found
2). The accuracy of statistical simulation is evaluated at
on stochastic queues and their applications.
different levels of model detail, and it is shown that for multi-
However, there are a number of few direct queue simulators.
programmed workloads a 10% average error can be achieved,
For example, an applet (University of Malta, 2010), [7]
and for parallel benchmark programs 15% average error can
simulates a queuing situation where it starts with a newly
be achieved. K. Salah et al (2007), [5] also developed a
opened service with no one being served or waiting. The
performance analysis and comparison of interrupt –handling
arrival rate and service rates are fixed and once you start the
schemes in gigabit net.
simulation, an indicator shows how many customers are
Irene K. Amponsah(nee Vorsah) is with the Department of Mathematics
currently in the system, updated once each simulated second.
and Statistics, School of Physical Science, University of Cape Coast-Ghana ( Another example of a software named Simulator #2 (Baker,
e-mail: Iamponsah@ucc.edu.gh). 2000), [2] requires that you provide the distribution of the
Prof Bennony K. Gordor (Rtd) was with the Department of Mathematics Arrival Intervals, the discipline, the distribution of the service
and Statistics, School of Physical Science, University of Cape Coast-Ghana,
(e-mail: benkgordor@yahoo.co.uk). duration and the simulation controls.
Mr. Francis Dogbey is with the Ghana-India Kofi Annan Centre for
Excellence on ICT- Osu Accra, Ghana (e-mail: fdoggy2002@yahoo.co.uk).
International Scholarly and Scientific Research & Innovation 6(6) 2012 826 scholar.waset.org/1999.4/5290
World Academy of Science, Engineering and Technology
International Journal of Computer, Electrical, Automation, Control and Information Engineering Vol:6, No:6, 2012
are concerned. The Q-Simulator has three options; namely: Fig. 2 Interface Two
formula based method, uncontrolled simulation and the
controlled simulation. A. Using Formula Based Modeling/ Analytical Method
• Select Modeling from Figure 2.
III. OPERATING THE Q-SIMULATOR This will display the screen shown in Figure 3.
• The Q-Simulator Installation (optional)
Follow the instruction in the readme file on the storage
media containing the installation file.
• On the task bar, Click on Start then Program Files then Q-
Simulator (This will display a screen shown in Figure 1).
• From this screen, specify the time unit of the
computation; which may be seconds, minutes, or hours.
• Select the Task menu to display the screen shown in
Figure 2.
• Select appropriate options (e.g. Simulation, Controlled).
International Scholarly and Scientific Research & Innovation 6(6) 2012 827 scholar.waset.org/1999.4/5290
World Academy of Science, Engineering and Technology
International Journal of Computer, Electrical, Automation, Control and Information Engineering Vol:6, No:6, 2012
• Enter values for Arrival Rate and Service Rate • Click on Chart button to display the chart corresponding
• Click on Compute button to calculate the average to the set of values currently in the database. This will display
quantities or <<Back to Cancel the effect. the graph in Figure 5.
The formula based method calculates the average quantities
based on a known inter-arrival rate, λ and service rate µ . The
process assumes that the researcher computes λ and the µ
from the data. Then, by inputting these values the average
quantities are obtained.
International Science Index, Computer and Information Engineering Vol:6, No:6, 2012 waset.org/Publication/5290
International Scholarly and Scientific Research & Innovation 6(6) 2012 828 scholar.waset.org/1999.4/5290
World Academy of Science, Engineering and Technology
International Journal of Computer, Electrical, Automation, Control and Information Engineering Vol:6, No:6, 2012
REFERENCES
[1] L. M. Abolnikov, J. H. Dshalalow and A. M. Duhovny “A multilevel
control bulk queuing system with vacationing server,” in Operations
Research Letters, vol.13.3, 1993, pp. 183–188.
[2] S. L. Bakers, “Queue simulation demo”,2000,(Assessed 9/17/2010)
http://hspm.sph.sc.edu/COURSES/J716/demos/StudentLines/Queues.ht
ml1
[3] Kumar, B. Krishna, D. Arivudainambi, A. Vijayakumar. The M(x)/G/1
retrial queue with Bernoulli schedule and general retrial times, Pacific
Journal of Operational Research, 2002 ,
http://findarticles.com/p/articles/mi_qa5473/is_200211/ai_n21323383/
[4] S. Nussbaum, J. E. Smith “Statistical Simulation of Symmetric
Multiprocessor Systems” 35th Annual Simulation Symposium
http://www.ece.wise.edu/
[5] K. Salah, K. El-Badawi and F. Haidari , “Performance analysis and
comparison of interrupt-handling schemes in gigabit net. Computer
Simulation, vol. 30.17, 2007, pp. 3425–3441.
International Scholarly and Scientific Research & Innovation 6(6) 2012 829 scholar.waset.org/1999.4/5290