Lindley’s recursion gives a useful formula relating waiting times in a queue to general inter-arrival and service times.
Consider a FIFO single-server queue. We define:
as the inter-arrival time between the
th and
th arrivals;
as the service time of the
th arrival;
as the waiting time of the
th arrival; and
, with
.
Lindley’s Recursion
The waiting time of the th arrival satisfies
If , then
The process is a random walk. Lindley’s recursion therefore allows us to convert questions about the G/G/1 queue into questions about a random walk and its running minimum.

Lindley’s recursion. Whenever the random walk attempts to become negative, it is pushed back to zero. Equivalently, the process is reflected at zero so that it remains non-negative.
Proof
Immediately after the th job arrives, the workload is
. During the following inter-arrival time, the server can process
units of work. If the queue does not empty before the next arrival, then
If the queue empties, then and the next arrival finds an empty queue, so
. Combining the two cases gives


Lindley’s recursion when the queue remains busy and when the queue empties.
For the second statement, iterate the recursion backwards from :
This proves the result.
□