CSC328 ยท 2081 ยท 5 marks
Write short notes on: a. Queuing discipline b. Random variate
Write short notes on: a. Queuing discipline b. Random variate [5]
Quick answer
The number of customers that can wait in a line is called system capacity. The simplest case is an unlimited queue which can accommodate any number of customers (unlimited capacity). However, many systems such as web servers and call centers have limits on the number of entities that can be in the queue at any given time. Arrivals that come when the queue is full are turned away.
Short Notes
a. Queuing Discipline (2.5 marks)
Definition: The logical ordering of customers in a waiting line that determines which customer will be chosen for service next is called queuing discipline.
Common Types of Queuing Disciplines:
-
FIFO (First In, First Out): Customers are served in the order they arrive. This is the most common and default discipline. Example: bank queues.
-
LIFO (Last In, First Out): The most recently arrived customer is served first. Example: stack-based processing systems.
-
SIRO (Service In Random Order): Customers are selected randomly from the waiting queue regardless of arrival order.
Note in Kendall Notation: In the standard Kendall Notation (A/B/C/D/N/K), D represents the queuing discipline. If not specified, the default is FIFO. For example, M/D/2/FIFO/5/โ represents a system with exponential arrivals, deterministic service, 2 servers, FIFO discipline, capacity of 5, and infinite population.
b. Random Variate (2.5 marks)
Definition: A random variate is a particular outcome or realization generated from a specified probability distribution. It is a value produced by a random variable when the underlying random experiment is performed.
Key Points:
- A random variate is used in simulation modeling to represent uncertain quantities such as inter-arrival times, service times, and processing durations.
- Random variates are generated using techniques such as the Inverse Transform Method, Acceptance-Rejection Method, and Composition Method.
- They are drawn from distributions such as Exponential (M), Deterministic (D), and Erlang (E) distributions, which are commonly used in queuing models.
- In Markov Chain Monte Carlo (MCMC), sequences of random variates are generated to reflect complicated desired probability distributions.
Example: If service time follows an exponential distribution with mean 1/ฮผ, then a random variate for service time is generated as:
$$x = -\frac{1}{\mu} \ln(U)$$
where U is a uniform random number between 0 and 1.
Random variates are essential in discrete event simulation to mimic real-world stochastic behavior of systems such as queuing networks.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.