Queue and Service

Delay modeling, waiting times, entity storage, buffering

Entity Queue and Entity Server blocks are storage blocks that hold entities. The Entity Queue block stores and sorts the entities according to the queue policies. You can specify the number of entities that the queue can store simultaneously. The Entity Server block stores the entities, services them, and then attempts to output the entities. You can use the SimEvents® software to model basic or complex queueing and server systems. For more information, see Storage with Queues and Servers.


Conveyor SystemTransport entities
Entity QueueEnqueue messages and entities
Entity ServerServe entities
Entity StoreStore entities
Entity Transport DelayIntroduce a delay in propagation of a SimEvents message


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.

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.

Featured Examples