Vector Clocks
Collin J. Fidge, 1988. Timestamps in Message-Passing Systems That Preserve the Partial Order
Vector Clocks Collin J. Fidge, 1988. Timestamps in Message-Passing - - PowerPoint PPT Presentation
Vector Clocks Collin J. Fidge, 1988. Timestamps in Message-Passing Systems That Preserve the Partial Order Order of events without global clock What happens when? event message time process A total order of events Lamport clocks 5 4 4
Collin J. Fidge, 1988. Timestamps in Message-Passing Systems That Preserve the Partial Order
Order of events without global clock
A total order of events
A total order of events
A total order of events
A partial order of events
minimal relation
same process message transitivity
A partial order of events
A partial order of events
Vector clocks
[, , . . . , ]
Vector clocks
= ([], [])
Vector clocks
Vector clocks
→ → ⇐ ⇒ [] < []
Vector clocks
→ ⇐ ⇒ [] < []
minimal relation
same process message transitivity
Vector clocks
Vector clocks
→ [] < []
Vector clocks
→ [] < [] −
(−
[], [] + )
= (−
[], [])
[], [] + )
Vector clocks
[] < [] = [] [] = [] [] [] < [] []
Vector clocks
→
⇒ [] < [] []
Vector clocks