Len Gorney
POB 96 RD 1
Clarks Summit PA 18411

Queuing Theory,
the Science of Wait Control

Part 2: System Types

In part 1 we discussed the computer implementation of row and circular queues. Now, let us take a look at the structure of queues in the real world and see if they can be fitted to our previous programs. In the following discussion, the word queue refers to the waiting line in the system. The word facility refers to the service facility area located at the head of the queue.

System Types

There are four general types of queuing structures. The first, and simplest, is the single queue single facility System (figure 3). In this structure, there is one waiting line and one service area to be studied. A 1 pump gas station with one entrance is a real world example of this system.
Figure 3: A single queue single facility system with one waiting line and one service area.
We can extend this system to the single queue multifacility system (see figure 4). In this structure, customers line up in a single waiting line and are serviced at the first of a series of facilities. Upon departure from the first facility, the customers immediately enter another queue to await their turn at the second service facility. This insertion and deletion continues until the customer is eventually deleted; from the last facility and consequently the entire system. This structure is not unlike a cafeteria where you first line up for a sandwich, then line up for dessert, then for a drink, and finally, for the cash register.
Figure 4: Single queue multifacility system, in which the customer waits in a queue to use a facility, then waits in another queue for the second facility, and so on until all service facilities have been used.
Another basic queue structure is a multi-queue single facility system (see figure 5). This is the type of structure you see at a typical supermarket checkout counter area. Customers arrive at the queue with their purchases and choose one of many waiting lines. Each service facility offers the same service, that is, checking out the purchases, but each line holds different customers.
Figure 5: Multiqueue single facility system. An example of such a system is the supermarket checkout area. The checkout area has several service facilities, each with a corresponding queue, that all offer the same service.
The multiqueue, multifacility system in figure 6 is a combination of the previously mentioned structures. A number of initial queues feed into a series of facilities. When a customer enters a particular queue, that customer travels from each facility within that subsystem until the eventual deletion from the system. Once a customer is entered into a subsystem, that customer causes that subsystem to behave as does the single queue multifacility queue system.
Figure 6: Multiqueue, multifacility system. This system has a number of initial queues feeding into a series of facilities. A customer entering a particular queue stays within that particular subsystem until leaving the system.
Any waiting line can be fitted to one of the four queue structures just mentioned. Try it the next time you're waiting in a line.
After we are able to define the type of queue we have, the problem of analyzing the structure and arriving at answers most important in queuing problems is our next step. At this time we won't concern ourselves with the difference between a single server or a multiserver queue. The former represents a grocery store checkout counter arrangement where customers enter any line (usually the shortest or the fastest moving). The latter fits into the situation at a barbershop. One long line feeds into a large service area where a number of barbers (ie: the servers) wait for you to come to them.
Let's imagine a 1 pump gas station. At the start of the day, the operator (ie: server) opens the pump and waits for the first customer of the day to arrive. After some period of time, the first customer arrives and immediately drives up to the pump for service. This lucky first customer has no waiting time since the facility (at the head of the queue) is open and free of previous customers. The customer requires some period of time for service, and upon completion of this servicing time leaves the system. The operator sits back and waits for the next customer to arrive.
The second customer arrives, is immediately served, and leaves the system. If the only time a customer spends in a queue is the time required for service, no queue forms. What we need for a queue to form is to have customers arrive while there is a customer being serviced. Then a line will form with waiting customers. The queue will form based entirely upon the service requirements of the customer at the service area.

Randomness

A pure queuing problem requires that customer arrival and service times be different. In other words, while a customer is being serviced, other customers enter the system at random intervals during the simulation period to form a queue.
Formally speaking, the randomness of these arrivals follows a Poisson distribution and exponential interarrival times. Basically, this means that an arrival has an equal chance of arriving at the tail of the queue at any time during the simulation period of the problem. Typical nonqueue structures do not exhibit this random criterion. For example, a movie theater line is not a good queue problem because arrivals usually bunch up in a period 10 to 15 minutes before the new show starts. Therefore, during the simulation period, randomness is a key ingredient. Randomness causes the queue to lengthen and decrease based only on the service requirements of each customer.
Usually a customer must wait in a line at any business establishment before receiving the desired service. How the businessman treats these waiting customers is of prime importance as to the success or failure of most businesses. A typical customer will take one of the following actions when faced with a waiting line. The first action is to just wait in the line until service arrives. Once in line, that customer will remain in line until the end. The businessman has little worry over this customer because this customer will eventually be serviced and some profit will be realized.
A second alternative open to a waiting customer is for that customer to jockey from line to line. How many times have you seen this customer arrive at one queue, wait for a short period of time, move to another queue, wait again, then move again, and so on. This situation exists in the multiqueue system as is evidenced in a bank or large supermarket with many service facilities available for customer use.
The previous two actions should cause little concern. The customer remains in the system and will eventually be served, thereby yielding the business some profit. However, what happens when the customer leaves the system after entering or refuses to enter the system initially?
If a customer has entered the system and leaves before being serviced, that customer has reneged. This situation occurs quite often when the waiting lines are moving at a rate far too slow for the customers within the lines. The customer and possible profits are lost to the businessman when a customer's action takes him or her on this route.
The last, and most damaging to the businessman, is the situation where a customer doesn't initially enter the system. When a customer sees a long and slow moving line, that customer usually balks. This customer is surely lost because he doesn't even give the businessman a chance at the very outset.
Since time is money, the important questions relating to queuing systems must be solved with relation to the time involved in waiting and servicing customers.
What is the maximum amount of time a customer waits in a line? What is the average amount of time all the customers are expected to wait in line before being served and deleted? What is the maximum amount of service time for any one customer during a typical period of time? Any measurement involving customer waiting time and customer service time is vital to the success or failure of a business.

A Queuing Problem

The program shown in listing 3 is that of a typical queuing problem utilizing the circular queue as the queuing structure. What we may have here is a hypothetical 1 pump gas station. The system will therefore be described as a single queue single facility structure.
Listing 3: BASIC program that simulates a single queue single facility System such as a 1 pump gas station. The program incorporates several functions discussed in part 1.
[BASIC-Listing]
Past experience gives us some of the input parameters required for the problem solution. For example, our queue is dimensioned to ten locations, so only ten cars can fit in our service area. This parameter can be adjusted using input parameter questions at the beginning of the program. In addition to the queue length, the program asks for the minimum and maximum typical service times. The arrivals per unit time determine how many customers are arriving each minute during the simulation. The simulation is halted after the first parameter value is reached, namely, the amount of time to run the model.

Conclusion

For the serious reader, the list of reference material includes those texts which place a good emphasis on queuing theory. After digesting the ideas in this article, plunge into these texts. Now I can return to my reading queue and get to those lines of books and articles waiting on my bookshelf. I'm sure that somewhere out there is a line waiting for you!

BIBLIOGRAPHY

  1. Cooper, Introduction to Queuing Theory, Macmillan, New York, 1972.
  2. Cox, Smith, Queues, John Wiley and Sons, New York, 1961.
  3. Gross, Harris, Fundamentals of Queuing Theory, John Wiley and Sons, New York 1974.
  4. Harrison, Data Structures and Programming, Scott, Foresman, Glenview IL, 1973.
  5. Hillier, Lieberman, Operations Research, Holden-Day, San Francisco, 1974.
  6. Siemens, Marting, Greenwood, Operations Research, Macmillan, New York, 1973.
  7. Wagner, Principles of Operations Research, Prentice-Hall, Englewood Cliffs NJ, 1975.

Eingescanned von Werner Cirsovius
Juli 2003
© BYTE Publications Inc.