Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Which is the best method for concurrency control?


Asked by Samira Lindsey on Dec 01, 2021 FAQ



There are main three methods for concurrency control. They are as follows: 1. Locking Methods 2. Time-stamp Methods 3. Optimistic Methods 1. Locking Methods of Concurrency Control : "A lock is a variable, associated with the data item, which controls the access of that data item." Locking is the most widely used form of the concurrency control.
Indeed,
Concurrency control technique implements some protocols which can be broadly classified into two categories. These are: Lock-based protocol: Those database systems that are prepared with the concept of lock-based protocols employ a mechanism where any transaction cannot read or write data until it gains a suitable lock on it.
Keeping this in consideration, Method that would be Efficient for Planning Proactive Concurrency A lock secures exclusive use of a data item to a current transaction. A transaction obtains a lock before the data is accessed; the lock is (unlocked) when the transaction is finished so that another transaction can lock the data item for its use.
Consequently,
The most commonly used concurrency protocol is the timestamp based protocol. This protocol uses either system time or logical counter as a timestamp. ii.
In respect to this,
What is Concurrency Control in DBMS? It is the method of managing concurrent operations on the database without getting any obstruction with one another. The Need for Concurrency Control A key purpose in developing a database is to facilitate multiple users to access shared data in parallel (i.e., at the same time).