Queue and Service

Delay modeling, waiting times, entity storage, buffering

Queues order entities and sort them according to queue policies. They store entities for some length of time that cannot be determined in advance. For more information, see Storage with Queues and Servers.


Conveyor SystemTransport entities
Entity QueueEnqueue entities
Entity ServerServe entities
Entity StoreStore entities


Sort by Priority

Using attribute values to control the queue discipline

Task Preemption in a Multitasking Processor

This example shows how to force service completion in an Entity Server block using functionality available on the block Preemption tab.

Determine Whether a Queue Is Nonempty

Using queue length signal to determine whether a queue is empty or nonempty

Model Server Failure

Using Stateflow® charts to model the behavior of a server that requires maintenance

Storage with Queues and Servers

What storage represents in various application types.

Model Basic Queuing Systems

Suppose that you are modeling a queue that can physically hold 100 entities and you want to determine what proportion of the time the queue length exceeds 10.

Write Event Actions

What events represent in various application types.

Featured Examples