Q5Distributed Systems
Question
2 marks
What is a logical clock?
Answer
A logical clock (like Lamport timestamps) completely abandons absolute physical time (hours/minutes), instead using a rigid mathematical counter to strictly determine the chronological cause-and-effect ordering of distributed events.
Physical clocks in a distributed system violently drift out of sync due to quartz crystal physics. Logical clocks mathematically prove that "Event A caused Event B" across the network by passing incremented integers, entirely bypassing the need for perfectly synchronized atomic hardware.