Files

22 lines
828 B
Plaintext

@startuml
skinparam backgroundColor transparent
skinparam shadowing false
skinparam defaultFontName Monospace
skinparam defaultFontSize 12
skinparam ArrowColor #8095a1
skinparam rectangleBorderColor #2c7794
skinparam rectangleBackgroundColor #edf6fa
title A2 STRUCTURE — mutex, owner, wait list and resource
rectangle "01 Mutex\nQueueDefinition\nuxQueueType = mutex" as mutex
rectangle "02 LowTask\nbase priority 1\neffective priority 1 → 3" as low
rectangle "03 HighTask\npriority 3\nblocked on mutex" as high
rectangle "04 MediumTask\npriority 2\nReady, not executed" as medium
rectangle "05 protected value\n1 → 2" as resource
low --> mutex : owns
high ..> mutex : waits forever
mutex --> low : inherits 3
medium ..> low : cannot preempt 3
low --> resource : guarded write 1
high --> resource : guarded write 2
@enduml