RTUComputer ScienceYr 2024 · Sem 62024

Q5Distributed System

Question

2 marks

What are physical and logical clocks?

Answer

Physical clocks mathematically track exact, real-world time, whereas Logical clocks strictly track the mathematical causality and exact chronological order of events without absolute time.

Physical Clocks rely on hardware quartz oscillators or atomic vibrations to measure actual seconds, but they suffer from catastrophic clock drift across networks. Logical Clocks (like Lamport timestamps) completely abandon real time, using mathematical software counters to strictly guarantee that if Event A caused Event B, Event A receives a mathematically lower timestamp.

Back to Paper