# Queuing Theory: Customers arrive at a fast-food restaurant at the rate of 120 customers per hour

During lunch hour, customers arrive at a fast-food restaurant at the rate of 120 customers per hour. The restaurant has one line, with three workers taking food orders at independent service stations. Each worker takes an exponentially distributed amount of time--on average 1 minute-- to service a customer. Let $X_t$ denote the number of customers in the restaurant (in line and being serviced) at time t. The process $(X_t)_{t \ge 0}$ is a continuous-time Markov chain. Exhibit the generator matrix.

I can't for the life of me figure this out. I'm not sure if I can combine the three workers and say that they are servicing 3 customers per minute. Can anyone give some advice on how to start this? Thank you in advance.

OK I solved it. I'll answer my own question though in case anyone is confused in the future. This can be looked at as a birth-death process.

We should either look at this as per hour or per minute. I choose to look at it as per minute.

Thus, customers arrive at a rate of 2 every minute.

The transition rates $q_{ij}$ for $i < j$ are these "births" that we see as 2/min.

So $q_{01} = 2$ which is the rate at which customers arrive. We have no serviced anyone.

$q_{10} = 1$ because there is one person in line and having three cashiers won't speed up or slow down the checkout of the customer.

Meanwhile, $q_{12} = 2$ which is still the "birth" rate.

As usual, $Q_{ii} = -q_i$

I.e. the diagonals are the negative holding time parameters.

We can keep going. $q_{21} = 2$ because with two customers in line we can process them at a rate of 2 customers per minute.

If we continue with this pattern we'll get up to a maximum of 3 customers per minute.

I hope this helps anyone else who gets confused on this :)