cp4 1
cp4 1
cp4 1
Lock-Based Protocols
Two Phase Locking Protocol
Timestamp-Based Protocols
Validation-Based Protocols
Lock-based Protocols
Lock Based Protocols in DBMS is a mechanism in which a
transaction cannot Read or Write the data until it acquires an
appropriate lock
Starvation
Read timestamp :
the largest value of timestamp of transaction
which has read the value of data variable
eg initial value of read (x)=0
now for this below example
T1 timestamp=10 T2 timestamp=20 T3 timestamp=30 T4 timestamp =40
r(x)
w(X)
w(X)
W(X)
R(X)
Now transaction 4 is doing the final read over
the data variable x
so read timestamp of x will became 40
Recoverability in DBMS
Recoverability is a property of database
systems that ensures that, in the event of a
failure or error, the system can recover the
database to a consistent state
chapter 6
File Organization and Trends in Databases : file organizations and its types, indexing, types of
indexing, hashing, hashing techniques, introduction to big data, nosql systems