Queue disciplines, priorities, blocking, and abandonment
Model who is served next, what happens when buffers fill, and how priority, preemption, and abandonment change outcomes.
On this page
First-in, first-out is a sensible default for many processes, but real systems also use triage priority, shortest processing time, due dates, appointment classes, dedicated lanes, or other selection rules.
With the same server and arrivals, changing FIFO to urgent-first moves urgent jobs ahead of ordinary jobs; total service capacity has not changed.
Specify how priority is assigned, how equal priorities are ordered, and whether service can be interrupted. Report waiting separately for urgent and ordinary jobs: a low overall mean can conceal a long ordinary-job queue.
If higher-priority work can interrupt service already in progress, define whether the interrupted job resumes, restarts, or loses work. Preemption is a stronger assumption than simply moving a job to the front of a waiting line.
One server stays busy until minute 5. Ordinary job A joined the queue at minute 1; urgent job B arrived at minute 2. At minute 5, non-preemptive FIFO selects A, but urgent-first selects B. The job already in service is never interrupted.
For the third row, change B to ordinary priority too: a FIFO tie-breaker then selects A, who arrived first. This example defines policies; it does not verify a Polymodus node's implementation.
| Policy | Next at 5 min | Reason |
|---|---|---|
| FIFO | A | Entered at minute 1 |
| Urgent first | B | Higher waiting priority |
| Equal priority, FIFO tie | A | Both ordinary; A arrived first |
When a downstream queue is full, decide what happens to the upstream completion. It might remain at the server and hold the resource, wait in a separate buffer, divert to another route, or be rejected.
For example, if a diagnostic room must hold a completed patient until a boarding space opens, that room cannot start another patient. An infinite downstream queue would miss the blocked room and overstate throughput.
With one server and a queue capacity of two waiting jobs, the system can hold three jobs: one in service and two waiting. If a fourth job arrives while all three places are occupied, it cannot join the waiting queue. In this example, the fourth job is rejected; another model might divert it or block its upstream source.
Some queueing notation instead specifies total system capacity, including jobs in service. For one server and two waiting places that total is three. State which limit you mean, and test the full-buffer event rather than assuming the software uses the same definition.
Customers may balk when they see a long line or abandon after waiting too long. Perishable jobs can expire; requests can time out; patients can leave without being seen.
Record these exits as outcomes. Removing them silently can make waiting time look better precisely because the most delayed work disappeared from the measurement.
Use these two-job and full-buffer cases before running the full arrival stream. Each case has one expected next event, so a wrong queue rule is easier to locate.
- Put two jobs with different priorities into the queue and verify which one starts first.
- Fill a finite downstream buffer and verify where the next completed job waits and which resource it holds.
- Force an abandonment timeout and verify that it is counted in the correct outcome.
- Test equal-priority ties so results do not depend on an accidental ordering rule.