Log in for answers tailored to you — saved chats, your topics, and the full IJR suite.
IJR.ai — Intelligence belongs to everyone
Topic
timestamp-based concurrency control
0 members
Overview
In computer science, a timestamp-based concurrency control algorithm is a non-lock concurrency control method. It is used in some databases to safely handle transactions, using timestamps.
Operation
Assumptions
Every timestamp value is unique and accurately represents an instant in time.
A higher-valued timestamp occurs later in time than a lower-valued timestamp.
Generating a timestamp
A number of different ways have been used to generate timestamp
Use the value of the system's clock at the start of a transaction as the timestamp.
Use a thread-safe shared counter that is incremented at the start of a transaction as the timestamp.
A combination of the above two methods.