Professional Documents
Culture Documents
Data Base Management System Page 1 of 8: Amit KR - Gupta B.E. 6 (I.T.) BIT, Durg
Data Base Management System Page 1 of 8: Amit KR - Gupta B.E. 6 (I.T.) BIT, Durg
Exammple: T1 T2
R(A)
W(A)
R(A)
W(A)
R(B)
W(B)
Commit
R(B)
W(B)
Commit
Here, a transaction T2 could overwrite the value of an object A, which has already
been modified by a transaction T1, while T1 is still in progress. Here, the problem is
that we have a lost update.
This type of write is called a blind write.
View Serializability
Two schedules S1 and S2 over the same set of transactions, are view equivalent if
1. If Ti reads the initial value of object A in S1, it must also read the initial value of
A in S2.
2. If Ti reads a value of A written by Tj in S1, it must also read the value of A
written by Tj in S2.
3. For each data object A, the transaction that performs the final write on A in S1
must also perform the final write on A in S2.
* A schedule is view serializable if it is view equivalent to some serial
schedule.
* Every conflict serializable schedule is view serializable; but the converse is
not true.
* Any view serializable schedule that is not conflict variable contains a blind
write.
Recoverability:
If a transaction Ti fails, for whatever reason, we need to undo the effect of this
transaction to ensure the atomicity property of the transaction. In a system that
allows concurrent execution, it is necessary also to ensure that any transaction Tj
that is dependent on Ti (that is, Tj has read data written by Ti) is also aborted. To
achieve this surety, we need to place restrictions on the type of schedules permitted
in the system.
A recoverable schedule is one where, for each pair of transactions Ti and Tj such
that Tj reads a data item previously written by Ti, the commit operation of Ti
appears before the commit operation of Tj .