☰
Libraries
.
Modelica_StateGraph2
.
Examples
.
Applications
.
Deadlock
OMC
latest
demo
☼
model
Deadlock
Example with two processes sharing two resources ending up in a deadlock situation after 5 seconds
Open the diagram
▶ Simulate in your browser
Extends from
Modelica.Icons.Example
(Icon for runnable examples).
Components
Type
Name
Default
Description
Modelica_StateGraph2.Step
free1
Modelica_StateGraph2.Step
s1
Modelica_StateGraph2.Transition
request1
Modelica_StateGraph2.Step
requesting1
Modelica_StateGraph2.Step
requesting3
Modelica_StateGraph2.Step
s2
Modelica_StateGraph2.Transition
request2
Modelica_StateGraph2.Transition
release2
Modelica_StateGraph2.Transition
release1
Modelica_StateGraph2.Step
free2
Modelica_StateGraph2.Step
s3
Modelica_StateGraph2.Transition
reqest3
Modelica_StateGraph2.Step
s4
Modelica_StateGraph2.Transition
request4
Modelica_StateGraph2.Transition
release4
Modelica_StateGraph2.Transition
release3
Modelica_StateGraph2.Step
busy1
Modelica_StateGraph2.Transition
start1
Modelica_StateGraph2.Transition
reserved1
Modelica_StateGraph2.Transition
reserved3
Modelica_StateGraph2.Transition
ready1
Modelica_StateGraph2.Step
idle1
Modelica_StateGraph2.Step
requesting2
Modelica_StateGraph2.Step
requesting4
Modelica_StateGraph2.Step
busy2
Modelica_StateGraph2.Transition
start2
Modelica_StateGraph2.Transition
reserved2
Modelica_StateGraph2.Transition
reserved4
Modelica_StateGraph2.Transition
ready2
Modelica_StateGraph2.Step
idle2
Modelica.Blocks.Logical.FallingEdge
fallingEdge
Modelica.Blocks.Logical.FallingEdge
fallingEdge1