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.

Serve High-Priority Customers by Sorting Entities Based on Priority

This example shows how to minimize the time required to serve high-priority customers by using a priority queue and Entity Input Switch and Entity Output Switch blocks.

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.

Model Server Failure

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

Featured Examples