@startuml queue
title Queue

binary "Tâche 1" as t1
concise "Queue" as s
binary "Tâche 2" as t2
binary "Tâche 3" as t3

scale 1000 as 100 pixels

@0
t1 is low
t2 is low
t3 is low
s is {-}


@+3000
t1 is high

@+200
t1 is low
s is "msg"
t1 -> s  : tx

@+400
t2 is high
s is {-}
s  -> t2 : rx
note top of s : T.1 écrit un message\nT.2 est réveillé et prends le message

@+200
t2 is low

@+2200
t1 is high

@+200
t1 is low
s is "msg"
t1 -> s  : tx

@+400
t2 is high
s is {-}
s  -> t2 : rx

@+200
t2 is low


@1000
t3 is high
@+100
t3 is low
@+900
t3 is high
@+100
t3 is low
@+900
t3 is high
@+100
t3 is low
@+900
t3 is high
@+100
t3 is low
@+900
t3 is high
@+100
t3 is low
@+900
t3 is high
@+100
t3 is low

@enduml
