Page 1 Page 1
Logical Clocks
Paul Krzyzanowski pxk@cs.rutgers.edu
Distributed Systems
Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.
Distributed Systems Logical Clocks Paul Krzyzanowski - - PowerPoint PPT Presentation
Distributed Systems Logical Clocks Paul Krzyzanowski pxk@cs.rutgers.edu Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License. Page 1 Page 1 Logical clocks Assign sequence
Page 1 Page 1
Paul Krzyzanowski pxk@cs.rutgers.edu
Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution 2.5 License.
Page 2
Page 3
Page 4
Page 5
Page 6
1 2 1 3 2 1
3
2 4 6
5
Page 7
1 2 1 3 2 1
3
2 4 6
5
Page 8
Page 9
Page 10
1 2 1 7 2 1
3
2 4 6 6 7
5
Page 11
Page 12
1 2 1 7 7 1
3
6 4 6
5
Page 13
– E.g. (host address, process ID)
(Ti, i) < (Tj, j) if and only if Ti < Tj or Ti = Tj and i < j
Page 14
1.1 2.1 1.2 7.2 7.3 1.3
3.1
6.2 4.1 6.1
5.1
Page 15
Page 16
Vi [j] = 0 for i, j =1, …, N
Vi [i] = Vi [i] +1
Vj [i] = max(Vi [i], Vj [i]) for i=1, …, N
Page 17
V = V’ iff V [i ] = V’[i ] for i = 1 … N V V’ iff V [i ] V’[i ] for i = 1 … N
Page 18
Page 19
Page 20
Page 21
Page 22
Page 23
Page 24
Page 25
Page 26
Page 27
Page 28
Page 29
Page 30 Page 30