Priority Queueing - Event Handling Previous Next
The second question you will be asked is which event occurs next. This is simply the event with the minimum clock time, among those for which a random time has been generated.
The third question you will be asked is what is the result of the event. The logic required to answer this question is summarized below for whichever of the two kinds of events just occurred at the new Current Time.
An Arrival Occurs (Either Type of Customer)
  1. If there is a server free, the customer begins service at that server.
  2. If no server is free, the customer joins the queue.
A Service Completion Occurs
  1. If both queues (for Priority Class 1 and 2) are empty, then the server remains idle.
  2. If the queue for Priority Class 1 is not empty, then the server begins service for a customer in Priority Class 1.
  3. If the queue for Priority Class 1 is empty, but the queue for Priority Class 2 is not, then the server begins service for a customer in Priority Class 2.