Concurrency Control in Distributed Transactions (1)
Concurrency Control in Distributed Transactions (1)
in Distributed
Transactions
Pessimistic Concurrency Control
(PCC)
• The Pessimistic Concurrency Control Mechanisms
proceeds on assumption that, most of the transactions
will try to access the same resource simultaneously.
• Growing Phase: The transaction acquires all the locks on the data items
that’ll be required to execute the transaction successfully. No locks will be
realease in this phase.
• Shrinking Phase: All the locks acquired in previous phase will be released
one by one and No New locks will be acquired in this phase.
Distributed Lock Manager
A distributed lock a
critical component in the
distributed transaction
system, which co-
ordinates the lock
acquiring, and releasing
operations in the
transactions. It helps in
synchronizing the
transaction and their
operation so that data
integrity is maintained.
Multiple Granularity Lock