Concurrency Control Chp 15, Database Systems,

Concurrency Control Chp 15, Database Systems,
1 / 1
Concurrency Control Chp 15, Database Systems, - slide 1 of 20 Concurrency Control Chp 15, Database Systems, - slide 2 of 20 Concurrency Control Chp 15, Database Systems, - slide 3 of 20 Concurrency Control Chp 15, Database Systems, - slide 4 of 20 Concurrency Control Chp 15, Database Systems, - slide 5 of 20 Concurrency Control Chp 15, Database Systems, - slide 6 of 20 Concurrency Control Chp 15, Database Systems, - slide 7 of 20 Concurrency Control Chp 15, Database Systems, - slide 8 of 20 Concurrency Control Chp 15, Database Systems, - slide 9 of 20 Concurrency Control Chp 15, Database Systems, - slide 10 of 20 Concurrency Control Chp 15, Database Systems, - slide 11 of 20 Concurrency Control Chp 15, Database Systems, - slide 12 of 20 Concurrency Control Chp 15, Database Systems, - slide 13 of 20 Concurrency Control Chp 15, Database Systems, - slide 14 of 20 Concurrency Control Chp 15, Database Systems, - slide 15 of 20 Concurrency Control Chp 15, Database Systems, - slide 16 of 20 Concurrency Control Chp 15, Database Systems, - slide 17 of 20 Concurrency Control Chp 15, Database Systems, - slide 18 of 20 Concurrency Control Chp 15, Database Systems, - slide 19 of 20 Concurrency Control Chp 15, Database Systems, - slide 20 of 20
Concurrency Control Chp 15, Database Systems, Korth , 6th edition Lock Based Protocols There are various modes in which a data item may be locked. Shared. If a transaction Ti has obtained a shared-mode lock (denoted by S) on item Q, then Ti

Related Topics

Download this presentation From Below

"Concurrency Control Chp 15, Database Systems," is the property of its rightful owner. Permission is granted to download and print the materials on this website for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.

Presentation Transcript

01
Concurrency Control Chp 15, Database Systems, Korth , 6th edition<br>
02
Lock Based Protocols There are various modes in which a data item may be locked.
Shared. If a transaction Ti has obtained a shared-mode lock (denoted by S) on item Q, then Ti can read, but cannot write, Q.
Exclusive. If a transaction Ti has obtained an exclusive-mode lock (denoted by X) on item Q, then Ti can both read and write Q.
The transaction makes the request to the concurrency-control manager, which grants the lock to the transaction.
The use of these two lock modes allows multiple transactions to read a data item but limits write access to just one transaction at a time. CONCURRENCY CONTROL Sudha Bhagavatheeswaran, Department of Information Technology,
SIES College of Arts, Science & Commerce (Autonomous)<br>
03
Lock Based Protocols Let A and B represent arbitrary lock modes. Suppose that a transaction Ti requests a lock of mode A on item Q on which transaction Tj (Ti = Tj ) currently holds a lock of mode B.
If transaction Ti can be granted a lock on Q immediately, in spite of the presence of the mode B lock, then we say mode A is compatible with mode B.
A transaction requests a shared lock on data item Q by executing the lock-S(Q) instruction. A transaction can unlock a data item Q by the unlock(Q)instruction.



compatibility matrix CONCURRENCY CONTROL Sudha Bhagavatheeswaran, Department of Information Technology,
SIES College of Arts, Science & Commerce (Autonomous)<br>