Unreliable Clocks

Time basics:

Types of Clocks

Physical Clocks

Clock Synchronization

Time of Day Clocks

e.g. System.currentTimeMillis()

Monotonic Clock

e.g. System.nanoTimer()

Logical Clocks

Vector Clocks

Basically when a message is sent, the vector is updated to the node’s current time

  1. Vector
  2. Lamport