Your browser does not fully support modern features. Please upgrade for a smoother experience.
Submitted Successfully!
Thank you for your contribution! You can also upload a video entry or images related to this topic. For video creation, please contact our Academic Video Service.
Version Summary Created by Modification Content Size Created at Operation
1 handwiki Vivi Li -- 1481 2022-10-24 01:34:50

Video Upload Options

We provide professional Academic Video Service to translate complex research into visually appealing presentations. Would you like to try it?
Cite
If you have any further questions, please contact Encyclopedia Editorial Office.
HandWiki. Lamport Timestamps. Encyclopedia. Available online: https://encyclopedia.pub/entry/30834 (accessed on 03 October 2026).
HandWiki. Lamport Timestamps. Encyclopedia. Available at: https://encyclopedia.pub/entry/30834. Accessed October 03, 2026.
HandWiki. "Lamport Timestamps" Encyclopedia, https://encyclopedia.pub/entry/30834 (accessed October 03, 2026).
HandWiki. (2022, October 24). Lamport Timestamps. In Encyclopedia. https://encyclopedia.pub/entry/30834
HandWiki. "Lamport Timestamps." Encyclopedia. Web. 24 October, 2022.
Lamport Timestamps
Edit

The algorithm of Lamport timestamps is a simple algorithm used to determine the order of events in a distributed computer system. As different nodes or processes will typically not be perfectly synchronized, this algorithm is used to provide a partial ordering of events with minimal overhead, and conceptually provide a starting point for the more advanced vector clock method. They are named after their creator, Leslie Lamport. Distributed algorithms such as resource synchronization often depend on some method of ordering events to function. For example, consider a system with two processes and a disk. The processes send messages to each other, and also send messages to the disk requesting access. The disk grants access in the order the messages were sent. For example process [math]\displaystyle{ A }[/math] sends a message to the disk requesting write access, and then sends a read instruction message to process [math]\displaystyle{ B }[/math]. Process [math]\displaystyle{ B }[/math] receives the message, and as a result sends its own read request message to the disk. If there is a timing delay causing the disk to receive both messages at the same time, it can determine which message happened-before the other: [math]\displaystyle{ A }[/math] happens-before [math]\displaystyle{ B }[/math] if one can get from [math]\displaystyle{ A }[/math] to [math]\displaystyle{ B }[/math] by a sequence of moves of two types: moving forward while remaining in the same process, and following a message from its sending to its reception. A logical clock algorithm provides a mechanism to determine facts about the order of such events. Lamport invented a simple mechanism by which the happened-before ordering can be captured numerically. A Lamport logical clock is a numerical software counter value maintained in each process. Conceptually, this logical clock can be thought of as a clock that only has meaning in relation to messages moving between processes. When a process receives a message, it re-synchronizes its logical clock with that sender. The above-mentioned vector clock is a generalization of the idea into the context of an arbitrary number of parallel, independent processes.

clock algorithm simple algorithm generalization

References

  1. Lamport, L. (1978). "Time, clocks, and the ordering of events in a distributed system". Communications of the ACM 21 (7): 558–565. doi:10.1145/359545.359563. http://research.microsoft.com/users/lamport/pubs/time-clocks.pdf. 
  2. "Clocks and Synchronization — Distributed Systems alpha documentation". http://books.cs.luc.edu/distributedsystems/clocks.html. 
More
Upload a video for this entry
Information
Contributor MDPI registered users' name will be linked to their SciProfiles pages. To register with us, please refer to https://encyclopedia.pub/register :
View Times: 1.5K
Entry Collection: HandWiki
Revision: 1 time (View History)
Update Date: 24 Oct 2022
Notice
You are not a member of the advisory board for this topic. If you want to update advisory board member profile, please contact office@encyclopedia.pub.
OK
Confirm
Only members of the Encyclopedia advisory board for this topic are allowed to note entries. Would you like to become an advisory board member of the Encyclopedia?
Yes
No
${ textCharacter }/${ maxCharacter }
Submit
Cancel
There is no comment~
${ textCharacter }/${ maxCharacter }
Submit
Cancel
${ selectedItem.replyTextCharacter }/${ selectedItem.replyMaxCharacter }
Submit
Cancel
Confirm
Are you sure to Delete?
Yes No
Academic Video Service