7 Queuing Theory

Operations Research · Unit 7

Queuing Theory

Exam-focused notes for Queuing Theory (Operations Research, ORS255): what the TU syllabus asks and how it has actually been tested, with 11 solved past questions from this unit.

Queuing Theory in short

A queue is a line of customers waiting for service, such as people at a bank counter or jobs waiting for a server. Queuing theory measures waiting time and queue length, so that managers can choose the right number of servers and balance service cost against waiting cost.

Queuing Theory: notes

Definition and characteristics of queues

A queuing system has arrivals, a waiting line and one or more servers. Its main parts are:

  • Input (arrival) pattern: how customers arrive, such as one at a time at random. The arrival rate is $\lambda$ customers per unit time.
  • Service pattern: how long service takes. The service rate is $\mu$ customers per unit time, so mean service time is $1/\mu$.
  • Number of servers (channels): single channel or many channels.
  • Queue discipline: the rule that picks who is served next.
  • Capacity of the system: unlimited or limited waiting space.
  • Calling source: the size of the population that sends customers, finite or infinite.

Customers may also balk (refuse to join a long line), renege (leave after waiting) or jockey (switch between lines).

Kendall notation names a model as A/B/c. A is the arrival pattern, B the service pattern and c the number of servers. The letter M means random (Markovian) with Poisson arrivals or exponential service. So M/M/1 is Poisson arrivals, exponential service and one server.

Queuing disciplines and service order

The queue discipline is the order in which waiting customers are served.

DisciplineMeaningExample
FIFO or FCFSFirst in, first outBank counter, ticket line
LIFOLast in, first outStack of plates, goods piled in a store
SIROService in random orderPicking a lucky number or a random file
PriorityImportant customers go firstEmergency patients in a hospital

FIFO is the most common and is treated as the fairest. Average queue length and average waiting time stay the same for FIFO, LIFO and SIRO. Only the spread of waiting times differs.

What this unit covers

  • Definition and characteristics of queues
  • Queuing disciplines and service order
  • Single channel queuing model
  • Operating characteristics of queuing systems
  • Poisson arrival processes
  • Exponential service time distributions
  • Average number of customers in system and queue
  • Average waiting time calculations

Average waiting time calculations

2082 · 5 marks

In a certain bank, customers arrive in a Poisson fashion with an average time of 20 minutes between arrivals of the customers. The service time of the bank cashier follows the exponential distribution with mean time 15 minutes. Under the assumptions of single channel queuing model, find (a) The average time spent by a customer in the queue.(a);The;average;time;spent;by;a;customer;in;the;queue.(a)Theaveragetimespentbyacustomerinthequeue.(b) The probability that there are 3 customers in the bank.(b);The;probability;that;there;are;3;customers;in;the;bank.(b)Theprobabilitythatthereare3customersinthebank.[5]

  • Mean inter-arrival time = 20 minutes - Mean service time = 15 minutes - Single channel model (M/M/1) Arrival rate: $$\lambda = \frac{1}{20} = 0.05 \text{ customers/min}$$ Service rate: $$\mu = \frac{1}{15} \approx 0.06667 \text{ customers/min}$$ Traffic intensity: $$\rho = \frac{\lambda}{\mu} =...
Open this answer on its own page →

Operating characteristics of queuing systems

2082 · 5 marks

Describe different operation characteristics of single channel queuing model. [5]

A single channel queuing model (M/M/1) consists of one server serving customers arriving from a single queue. The key operational characteristics are: - Customers arrive at an average rate of λ per unit time - Arrivals follow a Poisson distribution - Represents the intensity of customer flow into...

Open this answer on its own page →

2079 · 5 marks

What is called a queue? Describe the operating characteristics of the single channel queuing model. [5]

Show solved answer

Queue and Single Channel Queuing Model

What is a Queue?

A queue is a linear data structure that follows the FIFO (First-In-First-Out) principle, where elements are inserted at the rear end and removed from the front end. In the context of queuing theory, a queue refers to a waiting line of customers or entities awaiting service.


Operating Characteristics of Single Channel Queuing Model

The single channel queuing model (also called M/M/1 queue) has the following key operating characteristics:

1. Single Server/Channel

  • Only one service facility or server is available
  • All arriving customers must wait in a single queue if the server is busy
  • Customers are served one at a time in the order they arrive

2. FIFO Service Discipline

  • Customers are served in the order of their arrival (First-Come-First-Served)
  • No priority or preemption is allowed
  • Each customer waits until all previous customers are served

3. Arrival Pattern

  • Arrivals follow a Poisson distribution with arrival rate λ (lambda)
  • Arrivals are random and independent
  • The inter-arrival times are exponentially distributed

4. Service Time Distribution

  • Service times follow an exponential distribution with service rate μ (mu)
  • Service times are independent and identically distributed
  • The server works continuously when customers are present

5. Queue Capacity

  • The queue has unlimited capacity (infinite waiting space)
  • Customers do not balk or renege (they always join and wait)

6. Steady State Condition

  • The system operates under the condition λ < μ (arrival rate less than service rate)
  • This ensures the queue does not grow indefinitely

7. Key Performance Metrics

  • Utilization factor (ρ) = λ/μ
  • Average number of customers in system (L) = λ/(μ - λ)
  • Average waiting time in queue (Wq) = λ/[μ(μ - λ)]
Open this answer on its own page →

2080.2 · 5 marks

A TV repairman finds that the time spent on his job has an exponential distribution with mean 30 minutes. If he repairs sets in the order in which they come and if the arrival of sets is approximately Poisson with an average rate of 10 per 8 hour day. What is his expected idle time each day? How many jobs are ahead of the set just brought in? [5]

Show solved answer

Model Answer: TV Repairman Queuing Problem (M/M/1)

Given

  • Service time: Exponential, mean = 30 minutes
  • Arrival: Poisson, average rate = 10 sets per 8-hour day
  • Working day = 8 hours = 480 minutes

Solution

Rates (converted to consistent units, per hour)

Service rate: mean service time 30 min = 0.5 hour, so $$\mu = \frac{1}{0.5} = 2 \text{ sets/hour}$$

Arrival rate: $$\lambda = \frac{10}{8} = 1.25 \text{ sets/hour}$$

Traffic intensity

$$\rho = \frac{\lambda}{\mu} = \frac{1.25}{2} = 0.625$$

Since $\rho < 1$, the system is stable.

Expected idle time each day

Probability system is empty (repairman idle): $$P_0 = 1 - \rho = 1 - 0.625 = 0.375$$

Expected idle time per 8-hour day: $$= P_0 \times 8 = 0.375 \times 8 = 3 \text{ hours}$$

Expected number of jobs ahead of the set just brought in

The number of jobs "ahead" of an arriving set is the expected number in the system $L$ (all sets already present that must be dealt with before/including the one in service):

$$L = \frac{\lambda}{\mu - \lambda} = \frac{1.25}{2 - 1.25} = \frac{1.25}{0.75} = \frac{5}{3} \approx 1.67 \text{ jobs}$$

Final Answers

  • Expected idle time each day: $3$ hours (180 minutes)
  • Expected number of jobs ahead of the set just brought in: $L = \dfrac{5}{3} \approx 1.67$ jobs

Note on interpretation

The standard textbook interpretation of "how many jobs are ahead of the set just brought in" is the expected number in the system $L = 5/3 \approx 1.67$ (the newly arrived job sees, on average, $L$ jobs ahead of it, by PASTA). The alternative reading, the number waiting in the queue rather than in the system, gives $L_q \approx 1.04$. The conventional answer to this classic problem is $L = 5/3 \approx 1.67$.

Open this answer on its own page →

0 · 5 marks

What is called a queue? Describe the operating characteristics of the single channel queuing model. [5]

Show solved answer

Model Answer: Queue and Single Channel Queuing Model

What is a Queue?

A queue is a linear data structure that follows the FIFO (First In First Out) principle, where elements are inserted at the rear end and removed from the front end. In the context of queuing theory, a queue refers to a waiting line of customers or entities awaiting service.


Operating Characteristics of Single Channel Queuing Model

The single channel queuing model (also called M/M/1 model) has the following key operating characteristics:

1. Single Server/Channel

  • Only one service facility or server is available
  • All arriving customers must wait in a single queue if the server is busy
  • No parallel processing of customers

2. Arrival Pattern

  • Customers arrive randomly following a Poisson distribution
  • Arrivals are independent of each other
  • Characterized by arrival rate (λ)

3. Service Pattern

  • Service time follows an exponential distribution
  • Service times are independent and random
  • Characterized by service rate (μ)
  • One customer is served at a time

4. Queue Discipline

  • Follows FIFO (First In First Out) principle
  • Customers are served in the order they arrive
  • No priority or preemption

5. System Capacity

  • Unlimited queue length (infinite capacity)
  • Customers can wait indefinitely for service
  • No customers are turned away

6. Population Source

  • Infinite population of potential customers
  • Arrival rate remains constant regardless of queue length

7. Key Performance Metrics

  • Average number of customers in system (L)
  • Average number waiting in queue (Lq)
  • Average time in system (W)
  • Average waiting time in queue (Wq)
  • Server utilization (ρ = λ/μ)

This model is fundamental in operations research and is widely used to analyze real-world systems like bank counters, ticket windows, and service centers.

Open this answer on its own page →

Average number of customers in system and queue

2081 · 5 marks

A bank operates a single-channel queuing system with customers arriving at a rate of 6 per hour and each customer being served at an average rate of 8 per hour. Calculate (a) the average number of customers in the system and (b) the average waiting time. λ=6 per hour\lambda = 6;per;hourλ=6perhourμ=8 per hour\mu = 8;per;hourμ=8perhour[5]

  • Arrival rate: $\lambda = 6$ customers/hour - Service rate: $\mu = 8$ customers/hour - Model: M/M/1 (single server, Poisson arrivals, exponential service) - Utilization: $\rho = \lambda/\mu = 6/8 = 0.75 < 1$ (stable) $$Ls = \frac{\lambda}{\mu - \lambda} = \frac{6}{8 - 6} = \frac{6}{2} = 3 \text{...
Open this answer on its own page →

2080 · 5 marks

Customers arrive at a bank having single counter at the rate of 25 customers per hour. Time required to serve a customer has exponential distribution and average number of customers served per hour is 30. Find the average number of customers in queue and in system as well. [5]

  • Arrival rate: $\lambda = 25$ customers/hour - Service rate: $\mu = 30$ customers/hour - Single counter with exponential service time → M/M/1 model $$\rho = \frac{\lambda}{\mu} = \frac{25}{30} = \frac{5}{6} \approx 0.833$$ Since $\rho < 1$, the system is stable. $$L = \frac{\lambda}{\mu - \lambd...
Open this answer on its own page →

2079 · 5 marks

On the average 96 patients per 24 hours day require the emergency service in clinic. Also on the average, a patient requires 10 minutes of active attention. Assume that the facility can handle only one emergency at a time. If this situation satisfies all the conditions for apply queuing theory, find the average (expected) queue length and the waiting time for the patient to be served. [5]

  • Arrivals: 96 patients per 24-hour day - Service time per patient: 10 minutes (active attention) - Single server (one emergency at a time) - M/M/1 conditions satisfied Arrival rate: $$\lambda = \frac{96}{24 \text{ hr}} = 4 \text{ patients/hour}$$ Service rate (10 min per patient means 6 per hour...
Open this answer on its own page →

Queuing disciplines and service order

2080 · 5 marks

Describe different types of queuing disciplines used in serving a customer in a queue. [5]

A queuing discipline (or queue discipline) is the rule that determines the order in which customers waiting in a queue are selected for service. - Also called FCFS (First Come First Served) - Customers are served in the exact order they arrive - The customer who arrives first is served first - Mo...

Open this answer on its own page →

2080.2 · 5 marks

What is called a queue? Describe different queue disciplines. [5]

A queue is a linear data structure that follows the FIFO (First-In-First-Out) principle. Elements are inserted at one end called the rear (or tail) and removed from the other end called the front (or head). The first element added to the queue is the first one to be removed. Key characteristics: ...

Open this answer on its own page →

Single channel queuing model

0 · 5 marks

An airlines organization has one reservation clerk on duty in its local branch at any given time. The clerk handles information regarding passenger reservations and flight timing. Assume that the number of customers arriving during any given period is Poisson distributed with an arrival rate of eight per hour and that the reservation clerk can service a customer in six minutes on an average, with an exponentially distributed service time. (a) What is the probability that the system is busy? (b) What is the average time a customer spends in the system? [5]

  • Arrival rate: $\lambda = 8$ customers/hour (Poisson arrivals) - Mean service time: $6$ minutes per customer (exponential) - Service rate: $\mu = \dfrac{60}{6} = 10$ customers/hour - Single server $\Rightarrow$ M/M/1 model --- The system is busy whenever the server is occupied, i.e. the traffic ...
Open this answer on its own page →