Concurrency Control Techniques Unit III
Concurrency Control Techniques Unit III
Concurrency control
• Concurrency control concept comes under the Transaction in
database management system (DBMS). It is a procedure in
DBMS which helps us for the management of two
simultaneous processes to execute without conflicts between
each other, these conflicts occur in multi user systems.
• Concurrency can simply be said to be executing multiple
transactions at a time. It is required to increase time
efficiency. If many transactions try to access the same data,
then inconsistency arises. Concurrency control required to
maintain consistency data.
• For example, if we take ATM machines and do not use
concurrency, multiple persons cannot draw money at a
time.This is where we need concurrency.
Concurrency Control Problems
• Disadvantages of Concurrency
• Disadvantages of Concurrency
• Overhead: Implementing concurrency control requires additional
overhead, such as acquiring and releasing locks on database objects. This
overhead can lead to slower performance and increased resource
consumption, particularly in systems with high levels of concurrency.
• Deadlocks: Deadlocks can occur when two or more transactions are
waiting for each other to release resources, causing a circular dependency
that can prevent any of the transactions from completing. Deadlocks can
be difficult to detect and resolve, and can result in reduced throughput
and increased latency.
• Reduced concurrency: Concurrency control can limit the number of users
or applications that can access the database simultaneously. This can lead
to reduced concurrency and slower performance in systems with high
levels of concurrency.
• Complexity: Implementing concurrency control can be
complex, particularly in distributed systems or in
systems with complex transactional logic. This
complexity can lead to increased development and
maintenance costs.
• Inconsistency: In some cases, concurrency control can
lead to inconsistencies in the database. For example, a
transaction that is rolled back may leave the database
in an inconsistent state, or a long-running transaction
may cause other transactions to wait for extended
periods, leading to data staleness and reduced
accuracy.
Schedule