Jump to content

Logical clock

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sander~enwiki (talk | contribs) at 21:11, 30 March 2007 (correct to plural). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A logical clock is a mechanism for capturing chronological and causal relationships in a distributed system. As physical clocks cannot be perfectly synchronized, event timestamps derived from readings of physical clocks cannot in general be used to find out the order in which events happened.

Logical clock algorithms of note are:

  • Lamport logical clocks, which are monotonically increasing software counters
  • Vector clocks, that allow for total ordering of events in a distributed system.
  • Matrix clocks, an extension of vector clocks that also contains information about other processes' views of the system.