Lesson 6 Synchronization
Lesson 6 Synchronization
Systems
Synchronization
Part 1
1
Outline
Clock Synchronization
Clock Synchronization Algorithms
Logical Clocks
Election Algorithms
Mutual Exclusion
Distributed Transactions
Concurrency Control
Centralized Algorithms
Cristian’s Algorithm (1989)
Berkeley Algorithm (1989)
Decentralized Algorithms
Averaging Algorithms (e.g. NTP)
Multiple External Time Sources
a) The time daemon asks all the other machines for their clock values.
b) The machines answer and the time daemon computes the average.
c) The time daemon tells everyone how to adjust their clock.
(impossible)
(+$100) (+1%)