## Mixed Gated/Exhaustive Service in a Polling Model with Priorities ∗

M.A.A. Boon †

marko@win.tue.nl

I.J.B.F. Adan †

iadan@win.tue.nl

February, 2009

## Abstract

In this paper we consider a single-server polling system with switch-over times. We introduce a new service discipline, mixed gated/exhaustive service, that can be used for queues with two types of customers: high and low priority customers. At the beginning of a visit of the server to such a queue, a gate is set behind all customers. High priority customers receive priority in the sense that they are always served before any low priority customers. But high priority customers have a second advantage over low priority customers. Low priority customers are served according to the gated service discipline, i.e. only customers standing in front of the gate are served during this visit. In contrast, high priority customers arriving during the visit period of the queue are allowed to pass the gate and all low priority customers before the gate.

We study the cycle time distribution, the waiting time distributions for each customer type, the joint queue length distribution of all priority classes at all queues at polling epochs, and the steady-state marginal queue length distributions for each customer type. Through numerical examples we illustrate that the mixed gated/exhaustive service discipline can significantly decrease waiting times of high priority jobs. In many cases there is a minimal negative impact on the waiting times of low priority customers but, remarkably, it turns out that in polling systems with larger switch-over times there can be even a positive impact on the waiting times of low priority customers.

Keywords: Polling, priority levels, queue lengths, waiting times, mixed gated/exhaustive

## 1 Introduction

There are three ways in which one can introduce prioritisation into a polling model. The first type of priority is by changing the server routing such that certain queues are visited more frequently than other queues [6, 19]. This type of prioritisation is quite common in wireless network protocols. A second type of prioritisation is through differentiation of the number of customers that are served during each visit to a queue. This type of prioritisation is inflicted

∗ The research was done in the framework of the BSIK/BRICKS project, and of the European Network of Excellence Euro-FGI.

† Eurandom and Department of Mathematics and Computer Science, Eindhoven University of Technology, P.O. Box 513, 5600MB Eindhoven, The Netherlands

through the usage of different service disciplines. For example, one can serve all customers in a queue before switching to the next queue (exhaustive service), or one can limit the amount of customers that are served to, e.g., only those customers present at the arrival of the server at the queue (gated service). Typically, this will have a negative impact on the waiting times of the customers in queues that are not served exhaustively. The third way of introducing priorities is by changing the order in which customers are served within a queue, which is a popular technique to improve performance of production systems, cf. [2, 22]. The present paper introduces a new service discipline, referred to as mixed gated/exhaustive service, that combines the last two types of prioritisation.

In the polling model considered in the present paper a single server visits N queues in a fixed, cyclic order. Some, or even all, of the queues contain two types of customers: high and low priority customers. For these queues we introduce a new service discipline, called mixed gated/exhaustive service based on the priority level of the customer. A polling system with high and low priority customers in a queue with purely gated or exhaustive service has been studied in [1, 2]. The mixed gated/exhaustive service discipline can be considered as a mixture of these two service disciplines where low priority customers receive gated service and high priority customers receive exhaustive service. A more detailed description is given in Section 2. Since the number of customers served during one visit in a queue with gated service is different from the number served during a visit with exhaustive service, the mixed gated/exhaustive service discipline introduced in the present paper combines the second and the third type of prioritisation. Avariation of the model under consideration, namely a polling system where low priority customers are served only if there are no high priority customers present in any of the queues , has been studied in [12].

Polling models have been studied for many years and because of their practical relevance many papers on polling systems have been written in a mixture of application areas. The survey of Takagi [21] on polling systems and their applications from 1991 is still very valuable, although the last couple of years interest in polling models has revived, partly triggered by many new applications. The motivation for the present paper is to present a service discipline that combines the benefits of the gated and exhaustive service disciplines for priority polling models. The specific application that attracted our attention is in the field of logistics. Consider a make-to-order production system with a single production capacity for multiple products. In many firms encountering this situation, the products are produced according to a fixed production sequence. The production capacity, where the production orders queue up, can be represented as a polling model by identifying each product with a queue and the demand process of a product with the arrival process at the corresponding queue. For a more detailed description of fixed-sequence strategies in the context of make-to-stock production situations, see [23]. In the context of this production setting, the situation with two or more priority levels - as studied in detail in the present paper - is oftentimes encountered in practice, where production departments have to supply both internal and external customers, the latter of which is commonly given a preferential treatment. A different application stems from production scheduling in flexible manufacturing systems where part types are often grouped with other types sharing (almost) similar characteristics, such that no change of machine configuration, i.e. setup time, is required when switching between these part types (see, e.g., [17]). Since no setup time is required to switch between these types, it can be seen as customers of different types being served in the same queue. The introduction of priorities can be useful to efficiently differentiate between different parts grouped within one queue.

These two applications make the practical relevance of the inclusion of multiple priority levels in the studied polling model evident. Finally, we should keep in the back of our mind that the results of the present paper are certainly not limited to these production settings, but may be used in many other fields where polling models arise, such as communication, transportation and health care (e.g., surgery procedures where an urgency parameter is assigned to each patient).

The present paper is structured as follows: first we discuss the model in more detail and we determine the generating functions (GFs) of the joint queue length distribution of all customers at visit beginnings and completions of each queue. In Section 4 we determine the Laplace-Stieltjes Transforms (LSTs) of the distributions of the cycle time, visit times and intervisit times. These distributions are used to determine the marginal queue length distributions and waiting time distributions of high and low priority customers in all queues. The LST of the waiting time distribution is used to compute the mean waiting time of each customer type. A pseudo-conservation law for these mean waiting times is presented in Section 7. Furthermore, we introduce some numerical examples to illustrate typical features of a polling model with mixed gated/exhaustive service. Finally we discuss possible extensions and future research on the topic.

## 2 Notation and model description

The model considered in the present paper is a polling model which consists of N queues, labelled Q , . . . , Q 1 N . Throughout the whole paper all indices are modulo N , so Q N +1 stands for Q 1 . The queues are visited by one server in a fixed, cyclic order: 1 2 , , . . . , N, 1 2 , , . . . . The switch-over time of the server from Q i to Q i +1 is denoted by S i with LST σ i ( ). · We assume that all switch-over times are independent and at least one switch-over time is strictly greater than zero. Each queue contains two customer types: high and low priority customers, although the analysis allows any number (greater than zero) of customer types per queue. High priority customers in Q i are called type iH customers and low priority customers in Q i are called iL customers, i = 1 , . . . , N . Type iH customers arrive at Q i according to a Poisson process with intensity λ iH , and type iL customers arrive at Q i according to a Poisson process with intensity λ iL . The service times of type iH and iL customers are denoted by B iH and B iL , with LSTs β iH ( ) and · β iL ( ). · All service times are assumed to be independent. We introduce the notation ρ iH = λ iH E B ( iH ) and similarly ρ iL = λ iL E B ( iL ). The total occupation rate of the system is ρ = ∑ N i =1 ρ i , where ρ i = ρ iH + ρ iL is the fraction of time that the server visits Q i . Service of the customers is gated for low priority customers and exhaustive for high priority customers. In more detail: each queue actually contains two lines of waiting customers: one for the low priority customers and one for the high priority customers. At the beginning of a visit to Q i , a gate is set behind the low priority customers to mark them eligible for service. High priority customers are always served exhaustively until no high priority customer is present. When no high priority customers are present in the queue, the low priority customers standing in front of the gate are served in order of arrival, but whenever a high priority customer enters the queue, he is served before any waiting low priority customers. Service is non-preemptive though, implying that service of a type iL customer is not interrupted by an arriving type iH customer. The visit to Q i ends when all type iL customers present at the beginning of this visit are served and no high

priority customers are present in the queue. Notice that if the arrival intensity λ iH equals 0, then Q i is served completely according to the gated service discipline. Similarly we can set λ iL = 0 to obtain a purely exhaustively served queue. Both the gated and the exhaustive service discipline fall into the category of branching-type service disciplines. These are service disciplines that satisfy the following property, introduced by Resing [16] and Fuhrmann [10].

Property 2.1 If the server arrives at Q i to find k i customers there, then during the course of the server's visit, each of these k i customers will effectively be replaced in an i.i.d. manner by a random population having probability generating function h i ( z , . . . , z 1 N ), which can be any N -dimensional probability generating function.

glyph[negationslash]

If Q i receives gated service, we have h i ( z , . . . , z 1 N ) = β i ( ∑ N j =1 λ j (1 -z j ) ) , where β i ( ) · denotes the service time LST of an arbitrary customer in Q i , and λ i denotes his arrival rate. For exhaustive service h i ( z , . . . , z 1 N ) = π i ( ∑ j = i λ j (1 -z j ) ) , where π i ( ) is the LST of a busy · period distribution in an M/G/ 1 system with only type i customers, so it is the root in (0 , 1] of the equation π i ( ω ) = β i ( ω + λ i (1 -π i ( ω ))), ω ≥ 0 (cf. [7], p. 250).

Property 2.1 is not satisfied if Q i receives mixed gated/exhaustive service, because the random population that replaces each of these customers depends on the priority level. In the next section we circumvent this problem by splitting each queue into two virtual queues, each of which has a branching-type service discipline. This equivalent polling system satisfies Property 2.1, so we can still use the methodology described in [16] to find, e.g., the joint queue length distribution at visit beginnings and completions. All other probability distributions that are derived in the present paper can be expressed in terms of (one of) these joint queue length distributions.

## 3 Joint queue length distribution at polling epochs

In the present section we analyse a polling system with all queues having two priority levels and receiving mixed gated/exhaustive service, but in fact each queue would be allowed to have any branching-type service discipline. Denote the GF of the joint queue length distribution of type 1 H, 1 L, . . . , N H, NL customers at the beginning and the completion of a visit to Q i by respectively V b i ( z 1 H , z 1 L , . . . , z NH , z NL ) and V c i ( z 1 H , z 1 L , . . . , z NH , z NL ). As discussed in the previous section, the polling model under consideration does not satisfy Property 2.1, which often means that an exact analysis is difficult or even impossible. For this reason we introduce a different polling system that does satisfy Property 2.1 and has the same joint queue length distribution at visit beginnings and endings. The equivalent system contains 2 N queues, denoted by Q 1 H ∗ , Q 1 L ∗ , . . . , Q NH ∗ , Q NL ∗ . The switch-over times S i , i = 1 , . . . , N , are incurred when the server switches from Q iL ∗ to Q ( +1) i H ∗ ; there are no switch-over times between Q iH ∗ and Q iL ∗ . Customers in this system are so-called 'smart customers', introduced in [4], meaning that the arrival rate of each customer type depends on the location of the server. Type iH ∗ customers arrive in Q iH ∗ according to arrival rate λ iH unless the server is serving Q iL ∗ . When the server is serving Q iL ∗ , the arrival rate of type iH ∗ customers is 0. The reason for this is that we incorporate the service times of all type iH customers that would have arrived during the service of a type iL customer, in the original polling model, into the service time of a type iL ∗ customer. In our alternative system, type iL ∗ customers arrive with

intensity λ iL and have service requirement B ∗ iL with LST β ∗ iL ( ). · There is a simple relation between B iL and B ∗ iL , expressed in terms of the LST:

$$\beta _ { i L } ^ { * } ( \omega ) = \beta _ { i L } ( \omega + \lambda _ { i H } ( 1 - \pi _ { i H } ( \omega ) ) ).$$

B ∗ iL is often called completion time in the literature, cf. [20], with mean E B ( ∗ iL ) = E B ( iL ) 1 -ρ iH . Service is exhaustive for Q 1 H ∗ , Q 2 H ∗ , . . . , Q NH ∗ and synchronised gated for Q 1 L ∗ , Q 2 L ∗ , . . . , Q NL ∗ , the gate of Q iL ∗ being set at the visit beginning of Q iH ∗ . The synchronised gated service discipline is introduced in [15] and does not strictly satisfy Property 2.1. However, it does satisfy a slightly modified version of Property 2.1 that still allows for straightforward analysis; see [3] for more details. During a visit to Q iL ∗ only those type iL ∗ customers are served that were present at the previous visit beginning to Q iH ∗ . The joint queue length distribution at a visit beginning of Q iH ∗ in this system is the same as the joint queue length distribution at a visit beginning of Q i in the original polling system. Similarly, the joint queue length distribution at a visit completion of Q iL ∗ is the same as the joint queue length distribution at a visit completion of Q i in the original polling system. In terms of the GFs:

$$V _ { b _ { i } } ( \mathbf z ) = V _ { b _ { i H ^ { * } } } ( \mathbf z ),$$

$$V _ { c _ { i } } ( { \mathbf z } ) = V _ { c _ { i L ^ { * } } } ( { \mathbf z } ),$$

$$\stackrel { \int _ { b _ { i H } * } ( z ) } { \int _ { c _ { i L } * } ( z ) },$$

where z is a shorthand notation for the vector ( z 1 H , z 1 L , . . . , z NH , z NL ). The GFs of the joint queue length distributions at a visit beginning and completion of Q iH ∗ are related in the following manner:

$$V _ { c _ { i H ^ { * } } } ( \mathbf z ) = V _ { b _ { i H ^ { * } } } ( z _ { 1 H }, z _ { 1 L }, \dots, h _ { i H } ( \mathbf z ), z _ { i L }, \dots, z _ { N H }, z _ { N L } ),$$

glyph[negationslash]

$$\text{with } h _ { i H } ( \mathbf z ) = \pi _ { i H } \left ( \lambda _ { i L } ( 1 - z _ { i L } ) + \sum _ { j \neq i } ( \lambda _ { j H } ( 1 - z _ { j H } ) + \lambda _ { j L } ( 1 - z _ { j L } ) ) \right ). \text{ Similarly} \text{:}$$

$$V _ { c _ { i L ^ { * } } } ( \mathbf z ) = V _ { b _ { i H ^ { * } } } \left ( z _ { 1 H }, z _ { 1 L }, \dots, h _ { i H } ( \mathbf z ), h _ { i L } ( \mathbf z ), \dots, z _ { N H }, z _ { N L } \right ),$$

glyph[negationslash]

where h iL ( z ) = β ∗ iL ( λ iL (1 -z iL ) + ∑ j = i ( λ jH (1 -z jH ) + λ jL (1 -z jL )) ) . Note that V c iH ∗ ( ) = · V b iL ∗ ( ) · since there is no switch-over time between Q iH ∗ and Q iL ∗ . There is a switch-over time between Q iL ∗ and Q ( +1) i H ∗ though:

$$V _ { b _ { ( i + 1 ) H ^ { * } } } ( { \mathbf z } ) = V _ { c _ { i L ^ { * } } } ( { \mathbf z } ) \sigma _ { i } \left ( \sum _ { j = 1 } ^ { N } ( \lambda _ { j H } ( 1 - z _ { j H } ) + \lambda _ { j L } ( 1 - z _ { j L } ) ) \right ).$$

Now that we can relate V b ( +1) i H ∗ ( ) to · V b iH ∗ ( ), we can repeat these steps · N times to obtain a recursive expression for V b iH ∗ ( ). · This recursive expression is sufficient to compute all moments of the joint queue length distribution at a visit beginning to Q iH ∗ by differentiation, but the expression can also be written as an infinite product which converges if and only if ρ &lt; 1. We refer to [16] for more details.

## 4 Cycle time, visit time and intervisit time

We define the cycle time C i as the time between two successive visit beginnings to Q i , i = 1 , . . . , N . The LST of the distribution of C i , denoted by γ i ( ), · can be expressed in terms

of V b i ( ) · because the type iL customers that are present at the beginning of a visit to Q i are those type iL customers that have arrived during the previous cycle. It is convenient to introduce the notation ˜ V b i ( z iH , z iL ) = V b i (1 , . . . , 1 , z iH , z iL , 1 , . . . , 1), where z iH and z iL are the arguments that correspond respectively to type iH and iL customers. Using this notation we can write: ˜ V b i (1 , z ) = γ i ( λ iL (1 -z )). Hence, the LST of the cycle time distribution is:

$$\gamma _ { i } ( \omega ) = \widetilde { V } _ { b _ { i } } ( 1, 1 - \frac { \omega } { \lambda _ { i L } } ).$$

Note that E C ( i ) = E S ( 1 )+ ··· + E S ( N ) 1 -ρ , which does not depend on i . Higher moments of the cycle time distribution do depend on the cycle starting point.

We define the intervisit time I i as the time between a visit completion of Q i and the next visit beginning of Q i . The type iH customers present at the beginning of a visit to Q i are exactly those type iH customers that arrived during the previous intervisit time I i . Hence, ˜ V b i ( z, 1) = ˜ I i ( λ iH (1 -z )), where ˜ I ( ) · is the LST of the distribution of I i . This leads to the following expression for the LST of the intervisit time distribution of Q i :

$$\widetilde { I } _ { i } ( \omega ) = \widetilde { V } _ { b _ { i } } ( 1 - \frac { \omega } { \lambda _ { i H } }, 1 ).$$

It is intuitively clear that E I ( i ) = (1 -ρ i ) E C ( ).

The LSTs of the distributions of the cycle time and intervisit time are needed later in this paper. For the visit time of Q i , V i , we mention the LST here for completeness but it will not be used later:

$$E ( \mathrm e ^ { - \omega V _ { i } } ) = \widetilde { V } _ { b _ { i } } ( \pi _ { i H } ( \omega ), \beta _ { i L } ^ { * } ( \omega ) ).$$

It is easy to verify that E V ( i ) = ρ E C i ( ).

## 5 Waiting times and marginal queue lengths

## 5.1 High priority customers

Since high priority customers are served exhaustively, we can use the concept of delay-cycles, sometimes called T -cycles (cf. [21]), introduced by Kella and Yechiali [14] for vacation models to find the waiting time LST of a type iH customer, where waiting time is understood as the time between arrival of a customer into the system and the moment when the customer is taken into service. The waiting time plus service time will be called sojourn time of a customer. When it comes to computing waiting times in a polling system with priorities, one can use delay-cycles for any queue that is served exhaustively, cf. [1, 2]. A delay-cycle for a type iH customer is a cycle that starts with a certain initial delay at the moment that the last type iH customer in the system has been served. In our model this initial delay is either the service of a type iL customer, B iL , or (if no type iL customer is present) an intervisit period I i . The delay cycle ends at the first moment after the initial delay when no type iH customer is present in the system again. This is the moment that all type iH customers that have arrived during the delay, and all of their type iH descendants, have been served. In [1] delay-cycles have been applied to a polling system with two priority levels in an exhaustively served queue. For a type iH customer in the polling model in the present paper, the same

arguments can be used to compute the LST of the waiting time distribution. The fraction of time that the system is in a delay-cycle that starts with the service time B iL of a type iL customer is ρ iL 1 -ρ iH , and the fraction of time that the system is in a delay-cycle that starts with an intervisit period I i , is 1 -ρ iL 1 -ρ iH = 1 -ρ i 1 -ρ iH . We can use the Fuhrmann-Cooper decomposition [11] to obtain the LST of the waiting time distribution of a type iH customer, because from his perspective the system is an M/G/ 1 queue with server vacations. The vacation is the service time B iL of a type iL customer with probability ρ iL 1 -ρ iH , and an intervisit time I i with probability 1 -ρ i 1 -ρ iH . This leads to the following expression for the LST of the waiting time distribution of a type iH customer:

$$E [ e ^ { - \omega W _ { i H } } ] = \frac { ( 1 - \rho _ { i H } ) \omega } { \omega - \lambda _ { i H } ( 1 - \beta _ { i H } ( \omega ) ) } \cdot \left [ \frac { \rho _ { i L } } { 1 - \rho _ { i H } } \cdot \frac { 1 - \beta _ { i L } ( \omega ) } { \omega E ( B _ { i L } ) } + \frac { 1 - \rho _ { i } } { 1 - \rho _ { i H } } \cdot \frac { 1 - \widetilde { I } _ { i } ( \omega ) } { \omega E ( I _ { i } ) } \right ]. \quad ( 5. 1 )$$

Equation (5.1) is similar to the equation found in [1] for high priority customers in an exhaustive queue. Note that the intervisit time I i is different though, with LST ˜ I i ( ) as defined · in Equation (4.2).

The GF of the marginal queue length distribution of type iH customers can be found by applying the distributional form of Little's Law [13] to the sojourn time distribution:

$$E \left ( z ^ { N _ { i H } } \right ) = E \left ( \text{e} ^ { - \lambda _ { i H } ( 1 - z ) ( W _ { i H } + B _ { i H } ) } \right ).$$

This leads to the following expression:

$$E [ z ^ { N _ { i H } } ] = & \frac { ( 1 - \rho _ { i H } ) ( 1 - z ) \beta _ { i H } ( \lambda _ { i H } ( 1 - z ) ) } { \beta _ { i H } ( \lambda _ { i H } ( 1 - z ) ) - z } \\ & \cdot \left [ \frac { \rho _ { i L } } { 1 - \rho _ { i H } } \cdot \frac { 1 - \beta _ { i L } ( \lambda _ { i H } ( 1 - z ) ) } { ( 1 - z ) \lambda _ { i H } E ( B _ { i L } ) } + \frac { 1 - \rho _ { i } } { 1 - \rho _ { i H } } \cdot \frac { 1 - \widetilde { I } _ { i } ( \lambda _ { i H } ( 1 - z ) ) } { ( 1 - z ) \lambda _ { i H } E ( I _ { i } ) } \right ].$$

## 5.2 Low priority customers

In this subsection we determine the GF of the marginal queue length distribution of type iL customers, and the LST of the waiting time distribution of type iL customers. In order to obtain these functions, we regard the alternative system with 2 N queues as defined in Section 3. The number of type iL customers in the original polling system and their waiting time ( excluding the service time) have the same distribution as the number of type iL ∗ customers and their waiting time (again excluding the service time, which is different) in the alternative system. From the viewpoint of a type iL ∗ customer, the system is an ordinary polling system with synchronised gated service in Q iL ∗ .

We apply the Fuhrmann-Cooper decomposition to the alternative polling model with 2 N queues and type iL ∗ customers having completion time B ∗ iL . Using arguments similar as in the derivation of Equation (3.7) in [3], we find the general form of the GF of the marginal queue length distribution:

$$\text{pure region as uniform.} \\ E [ z ^ { N _ { i L } } ] & = \frac { ( 1 - \rho _ { i L } ^ { * } ) ( 1 - z ) \beta _ { i L } ^ { * } ( \lambda _ { i L } ( 1 - z ) ) } { \beta _ { i L } ^ { * } ( \lambda _ { i L } ( 1 - z ) ) - z } \\ & \quad \cdot \frac { V _ { c _ { i L } } ( 1, \dots, 1, z, 1, \dots, 1 ) - V _ { b _ { i L } } ( 1, \dots, 1, z, 1, \dots, 1 ) } { ( 1 - z ) ( E ( N _ { i L | I _ { e n d } } ^ { * } ) - E ( N _ { i L | I _ { b e g i n } } ^ { * } ) ) },$$

where ρ ∗ iL = ρ iL 1 -ρ iH and β ∗ iL ( ) · is given by (3.1). Furthermore, N ∗ iL I | end and N ∗ iL I | begin are the number of type iL ∗ customers at respectively the visit beginning and visit completion of Q iL ∗ . The visit beginning corresponds to the end of the intervisit period I iL , and the visit completion corresponds to the beginning of the intervisit period. Substitution into (5.3) leads to the following expression:

$$E [ z ^ { N _ { i L } } ] & = \frac { ( 1 - \frac { \rho _ { i L } } { 1 - \rho _ { i H } } ) ( 1 - z ) \beta _ { i L } ( \lambda _ { i L } ( 1 - z ) + \lambda _ { i H } ( 1 - \pi _ { i H } ( \lambda _ { i L } ( 1 - z ) ) ) ) } { \beta _ { i L } ( \lambda _ { i L } ( 1 - z ) + \lambda _ { i H } ( 1 - \pi _ { i H } ( \lambda _ { i L } ( 1 - z ) ) ) ) - z } \\ \cdot \frac { \widetilde { V } _ { b _ { i } } \left ( \pi _ { i H } ( \lambda _ { i L } ( 1 - z ) ), \beta _ { i L } ( \lambda _ { i L } ( 1 - z ) + \lambda _ { i H } ( 1 - \pi _ { i H } ( \lambda _ { i L } ( 1 - z ) ) ) ) \right ) - \widetilde { V } _ { b _ { i } } \left ( \pi _ { i H } ( \lambda _ { i L } ( 1 - z ) ), z \right ) } { ( 1 - z ) \lambda _ { i L } ( 1 - \frac { \rho _ { i L } } { 1 - \rho _ { i H } } ) E ( C ) },$$

where we use that E N ( ∗ iL I | end ) -E N ( ∗ iL I | begin ) = λ iL (1 -ρ ∗ iL ) E C ( ) = λ iL (1 -ρ iL 1 -ρ iH ) E C ( ), because this is the mean number of type iL ∗ customers that arrive during the intervisit time of Q iL ∗ .

Applying the distributional form of Little's Law to (5.4), we obtain the LST of the sojourn time distribution of a type iL customer. Since the sojourn time is W iL + B ∗ iL , the LST of the waiting time distribution immediately follows:

$$& \circ \cdots \cdots \cdots \cdots \\ & E [ e ^ { - \omega W _ { i L } } ] = & \frac { ( 1 - \frac { \rho _ { i L } } { 1 - \rho _ { i H } } ) \omega } { \omega - \lambda _ { i L } ( 1 - \beta _ { i L } ( \omega + \lambda _ { i H } ( 1 - \pi _ { i H } ( \omega ) ) ) ) } \\ & \quad \cdot \frac { \widetilde { V } _ { b _ { i } } \left ( \pi _ { i H } ( \omega ), \beta _ { i L } ( \omega + \lambda _ { i H } ( 1 - \pi _ { i H } ( \omega ) ) ) \right ) - \widetilde { V } _ { b _ { i } } \left ( \pi _ { i H } ( \omega ), 1 - \frac { \omega } { \lambda _ { i L } } \right ) } { \omega ( 1 - \frac { \rho _ { i L } } { 1 - \rho _ { i H } } ) E ( C ) }.$$

## 6 Moments

Differentiation of the waiting time LSTs derived in the previous section leads to the following mean waiting times:

$$E ( W _ { i H } ) = \frac { \rho _ { i H } E ( B _ { i H, r e s } ) + \rho _ { i L } E ( B _ { i L, r e s } ) } { 1 - \rho _ { i H } } + \frac { 1 - \rho _ { i } } { 1 - \rho _ { i H } } E ( I _ { i, r e s } ), \quad \quad ( 6. 1 )$$

$$E ( W _ { i L } ) = \left ( 1 + \frac { \rho _ { i L } } { 1 - \rho _ { i H } } \right ) \overset { \cdot \, \cdot \, \cdot } { E } ( C _ { i, r e s } ) + \frac { \rho _ { i H } } { 1 - \rho _ { i H } } \frac { \overset { \cdot \, \cdot \, \cdot } { E } ( \overset { \cdot \, \cdot } { X _ { i H } } X _ { i L } ) } { \lambda _ { i L } \lambda _ { i H } E ( C ) },$$

where B iH, res denotes a residual service time of a type iH customer, with E B ( iH, res ) = E B ( 2 iH ) 2 E B ( iH ) . We use a similar notation for the residual service time of a type iL customer, the residual intervisit time, and residual cycle time. Furthermore, X iH and X iL are respectively the number of type iH and type iL customers at the beginning of a visit to Q i , so E X ( iH X iL ) is obtained by differentiating ˜ V b i ( z iH , z iL ) with respect to z iH and z iL (and then setting z iH = z iL = 1).

We now present an alternative, direct way to obtain the mean waiting time for a type iL customer by conditioning on the event that an arrival takes place in a visit period, or in an

intervisit period.

$$\text{intervisit period.} \\ E ( W _ { i L } ) = & \frac { E ( V _ { i } ) } { E ( C ) } \left [ E ( V _ { i, r e s } ) + \frac { E ( V _ { i I } I _ { i } ) } { E ( V _ { i } ) } + \frac { \rho _ { i H } } { 1 - \rho _ { i H } } \frac { E ( V _ { i I } I _ { i } ) } { E ( V _ { i } ) } + \frac { \rho _ { i L } } { 1 - \rho _ { i H } } E ( V _ { i, p a s t ) } \right ] + \\ & \frac { E ( I _ { i } ) } { E ( C ) } \left [ E ( I _ { i, r e s } ) + \frac { \rho _ { i H } } { 1 - \rho _ { i H } } \left ( E ( I _ { i, p a s t } ) + E ( I _ { i, r e s } ) \right ) + \frac { \rho _ { i L } } { 1 - \rho _ { i H } } \left ( \frac { E ( V _ { i I } I _ { i } ) } { E ( I _ { i } ) } + E ( I _ { i, p a s t } ) \right ) \right ] \\ = & \frac { 1 } { E ( C ) } \left [ \frac { 1 } { 2 } E \left ( ( V _ { i } + I _ { i } ) ^ { 2 } \right ) + \frac { \rho _ { i L } } { 1 - \rho _ { i H } } E \left ( ( V _ { i } + I _ { i } ) ^ { 2 } \right ) + \frac { \rho _ { i H } } { 1 - \rho _ { i H } } \left ( E ( I _ { i } ^ { 2 } ) + E ( V _ { i I } I _ { i } ) \right ) \right ] \\ = & \left ( 1 + \frac { \rho _ { i L } } { 1 - \rho _ { i H } } \right ) \frac { E ( C _ { i } ^ { 2 } ) } { 2 E ( C ) } + \frac { \rho _ { i H } } { 1 - \rho _ { i H } } \left ( \frac { E ( I _ { i } ) } { E ( C ) } \left [ 2 \frac { E ( I _ { i } ^ { 2 } ) } { 2 E ( I _ { i } ) } \right ] + \frac { E ( V _ { i } ) } { E ( C ) } \frac { E ( I _ { i } V _ { i } ) } { E ( V _ { i } ) } \right ). \\ \text{In the above derivation, we use that both the past and residual intervisit time have expectation} \underset { \sim } { \sim }.$$

In the above derivation, we use that both the past and residual intervisit time have expectation E I ( 2 i ) 2 E I ( i ) , and that if a type iL customer arrives during the visit time (with probability E V ( i ) E C ( ) ), the mean length of the following intervisit time equals E I V ( i i ) E V ( i ) . The interpretation of (6.3) is that a type iL customer always has to wait for the residual cycle time, for the completion times of all type iL customers that have arrived during the past cycle time, and for the busy periods of all type iH customers that have arrived during the intervisit time of the cycle in which the type iL customer has arrived.

To show that (6.2) and (6.3) are equal, we can rewrite the last term in (6.2):

$$\cdot \cdot \cdot \cdot \cdot \cdot \cdot \\ E ( X _ { i H } X _ { i L } ) & = E [ ( N _ { i L } ( V _ { i } ) + N _ { i L } ( I _ { i } ) ) N _ { i H } ( I _ { i } ) ] \\ & = E \Big ( E [ ( N _ { i L } ( V _ { i } ) + N _ { i L } ( I _ { i } ) ) N _ { i H } ( I _ { i } ) ] \, | \, I _ { i }, V _ { i } \Big ) \\ & = E [ ( \lambda _ { i L } V _ { i } + \lambda _ { i L } I _ { i } ) \lambda _ { i H } I _ { i } ] \\ & = \lambda _ { i L } \lambda _ { i H } E ( I _ { i } V _ { i } ) + \lambda _ { i L } \lambda _ { i H } E ( I _ { i } ^ { 2 } ), \\ \sqrt { \pi \vee } \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \cdot \,.$$

where N T j ( ) denotes the number of type j customers that have arrived during time T ( j = iH, iL ), and V i denotes the length of a visit of the server to Q i . Hence,

$$\cdot _ { \lambda } \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \dots \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \dots \, \dots \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \dots \, \delta \, \dots \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \dots \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dists \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \dots \, \delta \, \delta \, \delta \, \delta \, \dots \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \delta \, \dagma \, \dagma \, \dagma \, \dagma \, \dagma \, \dagma \, \dagma \, \dagma \, \dagma \, \dagma \, \d$$

which coincides with the last term in (6.3).

## 7 Pseudo-conservation law for priority polling systems

Boxma and Groenendijk [5] have shown that a so-called pseudo-conservation law holds for nonpriority polling systems. We do not discuss this law in detail in the present paper, but we mention that a generalised version of this law (cf. [18, 9]) holds for systems with multiple priority levels in each queue:

$$\underset { i = 1 } { \overset { N } { \sum } } \underset { k = 1 } { \overset { K _ { i } } { \sum } } \underset { i = 1 } { \overset { \rho } { \rho _ { i k } } E ( W _ { i k } ) } & = \frac { \rho } { 1 - \rho } \underset { i = 1 } { \overset { N } { \sum } } \underset { k = 1 } { \overset { K _ { i } } { \sum } } \underset { 2 E ( B _ { i k } ) } { \overset { E ( B _ { i k } ^ { 2 } ) } { 2 E ( B _ { i k } ) } } \\ & + \rho \frac { E ( S ^ { 2 } ) } { 2 E ( S ) } + \left [ \overset { N } { \rho ^ { 2 } } - \underset { i = 1 } { \overset { N } { \sum } } \underset { \rho _ { i k } } { \overset { N } { \sum } } \right ] \frac { E ( S ) } { 2 ( 1 - \rho ) } + \underset { i = 1 } { \overset { N } { \sum } } E ( Z _ { i i } ),$$

where S = ∑ N i =1 S i , and K i is the number of priority levels in Q i . In this expression Z ii is the amount of work at Q i when the server leaves this queue and depends on the service discipline. It is well-known that for gated service, E Z ( ii ) = ρ E C 2 i ( ) and for exhaustive service, E Z ( ii ) = 0. The pseudo-conservation law also holds for polling systems with mixed gated/exhaustive service in some or all of the queues. If Q i receives mixed gated/exhaustive service, we have K i = 2, and E Z ( ii ) = ρ iL ρ E C i ( ).

## 8 Numerical results

## Example 1

In order to illustrate the effect of using a mixed gated/exhaustive service discipline in a polling system with priorities, we compare it to the commonly used gated and exhaustive service disciplines. In this example we use a polling system which consists of two queues, Q 1 and Q 2 . Customers in Q 1 are divided into high priority customers, arriving with arrival rate λ 1 H = 2 10 , and low priority customers, with arrival rate λ 1 L = 4 10 . Customers in Q 2 all have the same priority level and arrive with arrival rate λ 2 = 2 10 . All service times are exponentially distributed with mean 1. The switch-over times S 1 and S 2 are also exponentially distributed with mean 1, which results in a mean cycle time of E C ( ) = 10. The service discipline in Q 2 is gated, the service discipline in Q 1 is varied: gated, exhaustive and mixed gated/exhaustive. Results for a queue with two priority levels and purely gated or exhaustive service are obtained in [1].

Table 1 displays the mean and the variance of the waiting times of the three customer types under the three service disciplines. We conclude that the mixed gated/exhaustive service is a major improvement for the high priority customers in Q 1 , whereas the mean waiting times of the low priority customers in Q 1 and the customers in Q 2 hardly deteriorate. Of course in systems where ρ 1 H is quite high, the negative impact can be bigger and one has to decide exactly how far one wants to go in giving extra advantages to customers that already receive high priority. When comparing the mixed gated/exhaustive strategy to a system with purely exhaustive service in Q 1 , we conclude that the improvement is not so much in the mean waiting time for high priority customers, but mostly in the mean and variance of the waiting time for customers in Q 2 .

Table 1: Numerical results for Example 1. The switch-over times S 1 and S 2 are exponentially distributed with mean 1. The mixed gated/exhaustive service discipline is compared to gated and exhaustive service.

|              |   Gated |   Exhaustive |   Mixed G/E |
|--------------|---------|--------------|-------------|
| E ( W 1 H )  |   9.578 |        2.52  |       2.338 |
| E ( W 1 L )  |  14.366 |        6.3   |      14.575 |
| E ( W 2 )    |   9.69  |       14.88  |      10.513 |
| Var( W 1 H ) |  56.739 |        9.29  |       6.496 |
| Var( W 1 L ) | 101.616 |       32.812 |     118.217 |
| Var( W 2 )   |  58.513 |      231.256 |      76.371 |

Table 2: Numerical results for Example 1. Switch-over times are deterministic: S 1 = S 2 = 10.

|              |   Gated |   Exhaustive |   Mixed G/E |
|--------------|---------|--------------|-------------|
| E ( W 1 H )  |  63.187 |       11.333 |      11.167 |
| E ( W 1 L )  |  94.781 |       28.333 |      90.417 |
| E ( W 2 )    |  63.251 |       68     |      64     |
| Var( W 1 H ) | 847.377 |      195.508 |     183.907 |
| Var( W 1 L ) | 894.173 |      315.823 |     850.199 |
| Var( W 2 )   | 853.777 |     1386.1   |     928.914 |

It is noteworthy that the mixed gated/exhaustive service discipline does not always have a negative effect on the mean waiting time of low priority customers in Q 1 , E W ( 1 L ), compared to the gated service discipline. If, for example, the switch-over times are taken to be deterministic with value 10, the mean waiting time for low priority customers is significantly less for the mixed gated/exhaustive service than for gated service, as can be seen in Table 2. Compared to gated service, type 1 H customers benefit strongly from the mixed gated/exhaustive service discipline, and even type 1 L customers benefit from it. The mean waiting time for customers in Q 2 has increased, but only marginally.

In order to get more understanding of this surprising behaviour of the waiting time of low priority customers as function of the arrival intensities λ 1 H and λ 1 L , we use a simplified model which leads to more insightful expressions, but displays the same characteristics as the model that was analysed in the previous paragraph. Instead of analysing a polling model, we analyse an M/G/ 1 queue with multiple server vacations. The queue, denoted by Q 1 to use familiar notation, contains high (type 1 H ) and low (type 1 L ) priority customers. Also here high priority customers are served before low priority customers. The service times of both customers types are exponentially distributed with mean 1. This is for notational reasons only, for this example we actually only require that both service times are identically distributed. One server vacation has a fixed length S . If the server does not find any customers waiting upon arrival from a vacation, he takes another vacation of length S and so on. In order to stay consistent with the notation used earlier, we denote the occupation rate of high and low priority customers by respectively ρ 1 H and ρ 1 L . The total occupation rate is ρ = ρ 1 = ρ 1 H + ρ 1 L . Note that in this example λ 1 H = ρ 1 H and λ 1 L = ρ 1 L . We now compare the mean waiting times of type 1 L customers in the system with purely gated service and the system with mixed gated/exhaustive service. For this simplified model, we can write down explicit expressions that have been obtained by differentiating the LSTs and solving the resulting equations. These expressions could also have been obtained by using Mean Value Analysis (MVA) for polling systems [22, 24].

Gated service:

$$E ( W _ { 1 L } ) = ( 1 + \rho + \rho _ { 1 H } ) \left ( \frac { S } { 2 ( 1 - \rho ) } + \frac { \rho } { 1 - \rho ^ { 2 } } \right ), \quad \quad ( 8. 1 )$$

$$\text{Mixed $G/E$ service:}$$

$$\text{vice} \colon \quad E ( W _ { 1 L } ) = \frac { \rho } { ( 1 - \rho ) ( 1 - \rho _ { 1 H } ) } + \frac { S ( 1 + \rho ( 1 - 2 \rho _ { 1 H } ) ) } { 2 ( 1 - \rho ) ( 1 - \rho _ { 1 H } ) }. \quad ( 8. 2 )$$

Now we analyse the behaviour of these waiting times as we vary λ 1 H between 0 and ρ , while keeping λ 1 H + λ 1 L = ρ constant. Substitution of λ 1 H = 0 shows that the mean waiting times

in the gated and mixed gated/exhaustive system are equal:

$$E ( W _ { 1 L } | \rho _ { 1 H } = 0 ) = \frac { S ( 1 + \rho ) } { 2 ( 1 - \rho ) } + \frac { \rho } { 1 - \rho }.$$

Letting λ 1 H → ρ leads to the following expressions:

$$\text{Gated service:}$$

$$E ( W _ { 1 L } | \rho _ { 1 H } \rightarrow \rho ) = \frac { \rho ( 1 + 2 \rho ) } { 1 - \rho ^ { 2 } } + \frac { S ( 1 + 2 \rho ) } { 2 ( 1 - \rho ) },$$

$$\text{Mixed } G / \text{E service} \colon \ \ E ( W _ { 1 L } | \rho _ { 1 H } \to \rho ) = \frac { \rho } { ( 1 - \rho ) ^ { 2 } } + \frac { S ( 1 + 2 \rho ) } { 2 ( 1 - \rho ) }.$$

Two interesting things can be concluded from these two equations for the case λ 1 H → ρ :

- · for fixed ρ , E W ( 1 L ) in a gated system is always less than E W ( 1 L ) in a mixed gated/exhaustive system,
- · the difference between E W ( 1 L ) in a gated system and E W ( 1 L ) in a mixed gated/exhaustive system does not depend on S .

Focussing on the mean waiting time of type 1 L customers only, we conclude that a gated system performs the same as a mixed gated/exhaustive system as ρ 1 L = ρ , and that a gated system always performs better when ρ 1 L → 0. For 0 &lt; ρ 1 L &lt; ρ the vacation time S determines which system performs better. By taking derivatives of (8.1) and (8.2) with respect to ρ 1 H and letting ρ 1 H → 0, one finds that the mean waiting time of a type 1 L customer in a mixed gated/exhaustive system is less than in a purely gated system when ρ 1 H → 0, if and only if S &gt; 2 ρ 1+ ρ . Since a gated system always outperforms a mixed gated/exhaustive system when λ 1 H → ρ , for S &gt; 2 ρ 1+ ρ there must be (at least) one value of λ 1 H for which the two systems perform the same. Further inspection of the derivatives gives the insight that in a gated system the relation between E W ( 1 L ) and λ 1 H is a straight line, which can also be seen immediately from Equation (8.1). In a mixed gated/exhaustive system, the relation between E W ( 1 L ) and λ 1 H is not a straight line, both the first and second derivative with respect to λ 1 H are strictly positive. This means that for S ≤ 2 ρ 1+ ρ the gated system always performs better than the mixed gated/exhaustive system for any value of λ 1 H &gt; 0, and for S &gt; 2 ρ 1+ ρ the mixed gated/exhaustive system performs better than the gated system for 0 &lt; λ 1 H &lt; λ ∗ 1 H . The value of λ ∗ 1 H can be determined analytically:

$$\lambda _ { 1 H } ^ { * } = \rho \frac { S - \frac { 2 \rho } { 1 + \rho } } { S + \frac { 2 \rho } { 1 + \rho } }.$$

From this expression we conclude that lim S →∞ λ ∗ 1 H = ρ . Although we have studied only the vacation model, the conclusions are also valid for more general settings, like polling models with non-deterministic switch-over times, but the expressions are by far not as appealing.

We visualise the findings of the present section in Figure 1, where we show three plots of the mean waiting time of type 1 L customers against λ 1 H . The model considered is the same as in the beginning of the present section (two queues, gated service in Q 2 ) except for the switch-over times S 1 and S 2 , which are now deterministic. We compare gated service in Q 1 to mixed gated/exhaustive service for three different switch-over times (notice that the scales of the three plots in Figure 1 are different).

6

6

6

Figure 1: Mean waiting time of type 1 L customers in the polling model discussed in Example 1. For gated and mixed gated/exhaustive service E W ( 1 L ) is plotted against λ 1 H while keeping λ 1 L + λ 1 H constant. The switch-over times S 1 = S 2 = S/ 2 are deterministic.

![image](https://ac.marcodsn.me/arxiv-markdown-images/1408.0124v1-figure-da65e84d-3886-43d4-bee9-2c90e57b7e96.jpg)

## Example 2

In the previous example we showed that the mixed gated/exhaustive service discipline does not necessarily have a negative impact on the mean waiting times of low priority customers. In this example we aim at giving a better comparison of the performance of the gated, exhaustive and mixed gated/exhaustive service disciplines in a polling system with priorities. The polling system considered consists of two queues, each having high and low priority customers. The switch-over times S 1 and S 2 are exponentially distributed with mean 10. Service times of all customer types are exponentially distributed with mean 1. The arrival rates of the various customer types are: λ 1 H = λ 1 L = 1 10 , and λ 2 H = λ 2 L = 7 20 . The total occupation rate of this polling system is ρ = 9 10 , and we deliberately choose a system where the occupation rates of the two queues are very different, and the switch-over times are relatively high compared to the service times. The reason is that we envision production systems as the main application for the present paper (see also Section 1). In these applications large setup times are very common (see, e.g., [23]).

Table 3 shows the mean and variance of the waiting times of all customer types of this polling system for all combinations of gated, exhaustive and mixed gated/exhaustive service. We leave it up to the reader to pick his favourite combination of service disciplines, but our preference goes out to the system with exhaustive service in Q 1 and mixed gated/exhaustive service in Q 2 because in our opinion the best combination of low mean waiting times and moderate variances is obtained in this system.

## 9 Possible extensions and variations

Many extensions or variations of the model discussed in the present paper can be thought of. In this section we discuss some of them.

A globally gated system. The globally gated service discipline has received quite some attention in polling systems. Instead of setting the gates at the beginning of a visit to

|   Queue | Service discipline   |   E ( W iL ) |   E ( W iH ) |   Var( W iL ) |   Var( W iH ) |
|---------|----------------------|--------------|--------------|---------------|---------------|
|       1 | gated                |       141.81 |       119.99 |       5166.03 |       4660.09 |
|       2 | gated                |       222.95 |       146.82 |       5917.7  |       3560.67 |

Queue

Service discipline

E W

(

iL

)

E W

(

iH

)

Var(

W

iL

)

Var(

W

iH

)

1

2

Queue

1

2

Queue

1

2

Queue

1

2

Queue

1

2

Queue

1

2

Queue

1

2

Queue

1

gated exhaustive

Service discipline gated

gatedexhaustive

Service discipline exhaustive

gated

Service discipline exhaustive

exhaustive

Service discipline exhaustive

gatedexhaustive

Service discipline gatedexhaustive

gated

Service discipline gatedexhaustive

exhaustive

Service discipline gatedexhaustive

165.49

59.45

E W

(

iL

)

147.38

209.86

E W

(

iL

)

97.63

224.00

E W

(

iL

)

119.80

61.62

E W

(

iL

)

102.18

211.90

E W

(

iL

)

140.95

223.45

E W

(

iL

)

166.85

60.39

E W

(

iL

)

146.87

140.03

17.83

E W

(

iH

)

124.71

16.98

E W

(

iH

)

78.10

147.51

E W

(

iH

)

95.84

18.49

E W

(

iH

)

81.75

17.27

E W

(

iH

)

77.96

147.15

E W

(

iH

)

94.38

18.12

E W

(

iH

)

81.41

11087.40

1862.57

Var(

W

iL

)

6406.11

6213.92

Var(

W

iL

)

4252.19

6186.88

Var(

W

iL

)

9516.58

2136.19

Var(

W

iL

)

5193.21

6722.53

Var(

W

iL

)

5140.20

6045.55

Var(

W

iL

)

11655.90

1978.87

Var(

W

iL

)

6452.48

9411.43

651.03

Var(

W

iH

)

5658.44

555.67

Var(

W

iH

)

3784.99

3690.81

Var(

W

iH

)

7952.09

728.97

Var(

W

iH

)

4533.58

586.84

Var(

W

iH

)

3756.12

3622.49

Var(

W

iH

)

7574.67

684.25

Var(

W

iH

)

4462.04

2

gatedexhaustive

210.82

17.10

6451.10

569.08

Table 3: Expectation and variance of the waiting times of the polling model discussed in Section 8, Example 2.

a certain queue, the globally gated service discipline states that all gates are set at the beginning of a cycle, which is the start of a visit to an arbitrarily chosen queue. The model under consideration can be analysed using similar techniques if high priority customers are served exhaustively, but low priority customers are served according to the globally gated service discipline. One would first have to build a similar model that contains 2 N queues

and determine the joint queue length distribution at visit beginnings and endings. The cycle time, starting at the moment that all gates are set, can be expressed in terms of the GF of the number of customers at the beginning of that cycle. Waiting times for high priority customers can be obtained using delay-cycles again, and waiting times for low priority customers can be obtained using the Fuhrmann-Cooper decomposition. The LST of the waiting time distribution of low priority customers gets more complicated as the queue gets served later in the cycle.

More than two priority levels. It is possible to analyse a similar model as the one of Section 2, but with more than two, say K i , priority levels in Q i . These K i priority levels still have to be divided into two categories: high priority levels 1 , . . . , k i that receive exhaustive service, and low priority levels k i + 1 , . . . , K i that receive gated service. The methodology from Section 5 can be used, combined with the techniques that are used to analyse a polling model with multiple priority levels, cf. [2].

A mixture of gated and exhaustive without priorities. One could think of a system where each queue contains two customer classes having respectively the exhaustive and gated service discipline, but service is First-Come-First-Served (FCFS). The model is similar to the model discussed in this paper, with the exception that no 'overtaking' takes place. Customers that are served exhaustively will not be served before any 'gated customers' standing in front of this gate, but they are allowed to pass the gate. The joint queue length distributions at polling epochs and the cycle times are the same as for the system considered in the present paper. Since no overtaking takes place, the waiting times can be found without the use of delay cycles. Nevertheless, analysis of the waiting times is quite tedious because a visit of a server to Q i consists of three parts. The third part is the service of exhaustive customers behind the gate, the first part is the service of the gated customers that have arrived during the 'previous third part' and the second part is the FCFS service of both gated and exhaustive customers that have arrived during the previous intervisit time of Q i . A combination of this non-priority mixture of gated and exhaustive, and the service discipline discussed in the present paper is discussed by Fiems et al. [8]. They introduce, albeit in the different setting of a vacation queue modelled in discrete time, a service discipline where high priority customers in front of the gate are served before low priority customers waiting in front of the gate. The difference with the model discussed in the present paper, is that high priority customers entering the queue while it is being visited can pass the gate, but are not allowed to overtake low priority customers standing in front of the gate.

## Acknowledgements

The authors wish to thank Erik Winands for his many helpful remarks and discussions. His contribution to the present paper is very much appreciated. Our gratitude also goes out to Jacques Resing who suggested the mixed gated/exhaustive service discipline. Finally, the authors thank Onno Boxma for valuable discussions and for useful comments on earlier drafts of the present paper.

## References

- [1] M. A. A. Boon, I. J. B. F. Adan, and O. J. Boxma. A two-queue polling model with two priority levels in the first queue. ValueTools 2008 (Third International Conference on Performance Evaluation Methodologies and Tools, Athens, Greece, October 20-24, 2008) .
- [2] M. A. A. Boon, I. J. B. F. Adan, and O. J. Boxma. A polling model with multiple priority levels. Eurandom report 2008-029, Eurandom , 2008.
- [3] S. C. Borst. Polling Systems , volume 115 of CWI Tracts . 1996.
- [4] O. J. Boxma. Polling systems. From universal morphisms to megabytes: A Baayen space odyssey. Liber amicorum for P.C. Baayen. CWI, Amsterdam , pages 215-230, 1994.
- [5] O. J. Boxma and W. P. Groenendijk. Pseudo-conservation laws in cyclic-service systems. Journal of Applied Probability , 24(4):949-964, 1987.
- [6] O. J. Boxma and J. A. Weststrate. Waiting times in polling systems with Markovian server routing. In Messung, Modellierung und Bewertung von Rechensystemen und Netzen , eds. G. Stiege and J. S. Lie, pages 89-105. Springer Verlag, Berlin, 1989.
- [7] J. W. Cohen. The Single Server Queue . North-Holland, Amsterdam, revised edition, 1982.
- [8] D. Fiems, S. De Vuyst, and H. Bruneel. The combined gated-exhaustive vacation system in discrete time. Performance Evaluation , 49:227-239, 2002.
- [9] L. Fournier and Z. Rosberg. Expected waiting times in polling systems under priority disciplines. Queueing Systems , 9(4):419-439, 1991.
- [10] S. W. Fuhrmann. Performance analysis of a class of cyclic schedules. Technical memorandum 81-59531-1, Bell Laboratories, March 1981.
- [11] S. W. Fuhrmann and R. B. Cooper. Stochastic decompositions in the M/G/ 1 queue with generalized vacations. Operations Research , 33(5):1117-1129, 1985.
- [12] J. Gianini and D. R. Manfield. An analysis of symmetric polling systems with two priority classes. Performance Evaluation , 8:93-115, 1988.
- [13] J. Keilson and L. D. Servi. The distributional form of Little's Law and the FuhrmannCooper decomposition. Operations Research Letters , 9(4):239-247, 1990.
- [14] O. Kella and U. Yechiali. Priorities in M/G/ 1 queue with server vacations. Naval Research Logistics , 35:23-34, 1988.
- [15] A. Khamisy, E. Altman, and M. Sidi. Polling systems with synchronization constraints. Annals of Operations Research , 35:231 - 267, 1992.
- [16] J. A. C. Resing. Polling systems and multitype branching processes. Queueing Systems , 13:409 - 426, 1993.

- [17] M. Sharafali, H. C. Co, and M. Goh. Production scheduling in a flexible manufacturing system under random demand. European Journal of Operational Research , 158:89 - 102, 2004.
- [18] S. Shimogawa and Y. Takahashi. A pseudo-conservation law in a cyclic-service system with priority classes. IEICE Research Report , (IN88-86):13-18, 1988.
- [19] M. M. Srinivasan. Non-deterministic polling systems. Management Science , 37:667-681, 1991.
- [20] H. Takagi. Priority queues with setup times. Operations Research , 38(4):667-677, 1990.
- [21] H. Takagi. Queueing Analysis: A Foundation Of Performance Evaluation , volume 1: Vacation and Priority Systems, Part 1. North-Holland, Amsterdam, 1991.
- [22] A. Wierman, E. M. M. Winands, and O. J. Boxma. Scheduling in polling systems. Performance Evaluation , 64:1009-1028, 2007.
- [23] E. M. M. Winands. Polling, Production &amp; Priorities . PhD thesis, Eindhoven University of Technology, 2007.
- [24] E. M. M. Winands, I. J. B. F. Adan, and G.-J. van Houtum. Mean value analysis for polling systems. Queueing Systems , 54:35-44, 2006.
Marko Boon Ivo Adan
Mixed Gated/Exhaustive Service in a Polling Model with Priorities
In this paper we consider a single-server polling system with switch-over
times. We introduce a new service discipline, mixed gated/exhaustive service,
that can be used for queues with two types of customers: high and low priority
customers. At the beginning of a visit of the server to such a queue, a gate is
set behind all customers. High priority customers receive priority in the sense
that they are always served before any low priority customers. But high
priority customers have a second advantage over low priority customers. Low
priority customers are served according to the gated service discipline, i.e.
only customers standing in front of the gate are served during this visit. In
contrast, high priority customers arriving during the visit period of the queue
are allowed to pass the gate and all low priority customers before the gate.
  We study the cycle time distribution, the waiting time distributions for each
customer type, the joint queue length distribution of all priority classes at
all queues at polling epochs, and the steady-state marginal queue length
distributions for each customer type. Through numerical examples we illustrate
that the mixed gated/exhaustive service discipline can significantly decrease
waiting times of high priority jobs. In many cases there is a minimal negative
impact on the waiting times of low priority customers but, remarkably, it turns
out that in polling systems with larger switch-over times there can be even a
positive impact on the waiting times of low priority customers.