40 lines
712 B
Plaintext
40 lines
712 B
Plaintext
@startuml
|
|
|
|
left to right direction
|
|
skinparam linetype ortho
|
|
skinparam shadowing false
|
|
|
|
package "Before Partition" {
|
|
rectangle "A\nretry = false" as A
|
|
rectangle "B\nretry = true" as B
|
|
rectangle "C\nretry = false" as C
|
|
rectangle "D\nretry = true" as D
|
|
|
|
A --> B : next
|
|
B --> C : next
|
|
C --> D : next
|
|
}
|
|
|
|
package "After Partition" {
|
|
package "Ready Queue" {
|
|
rectangle "A" as ReadyA
|
|
rectangle "C" as ReadyC
|
|
|
|
ReadyA --> ReadyC : next
|
|
}
|
|
|
|
package "Retry Queue" {
|
|
rectangle "B" as RetryB
|
|
rectangle "D" as RetryD
|
|
|
|
RetryB --> RetryD : next
|
|
}
|
|
}
|
|
|
|
A ..> ReadyA : move
|
|
B ..> RetryB : move
|
|
C ..> ReadyC : move
|
|
D ..> RetryD : move
|
|
|
|
@enduml
|