lamport clock
The Lamport timestamp algorithm is a simple logical clock algorithm used to determine the order of events in a distributed computer system.
- a process increments its counter before each local event
- when a process sends a message, it includes its counter value with the message after executing step 1
- on receiving a message, the couner of the recipient is updated, if necessary, to the greater of its current counter and the timestamp in the received message. The counter is then incremented by 1 before the message is considered received.
|
|