Professional Documents
Culture Documents
Exercise 9
Exercise 9
QD
would be cascaded to Ti .
Ans .
1) -
are
conflict
.
i. e ,
it reads the uncommited data
Therefore ,
the last transaction of T2 will be a dirty
read .
}
2 .
The schedule of transactions with read -
write
conflict :
RLX ) and
'
in the transaction % ,
it tries to read '
✗
write
'
X' WLX ) ,
cause an error .
3) -
The schedule
for write -
write conflict
-
written arises in
which was
already by Tz .
The
conflict
that situation .
4) .
write -
Read conflict →
I will not
get shared lock on
✗ until T , commits
Read Write -
until Tz commits
write -
Write conflict →
Ti will not
get exclusive lock on ✗
until T2 commits .
93) Give an example of schedule where there are two
deadlock
transactions and a is
generated .
A) ^
Actions of transactions Ti and T2 on ✗ and Y
Tz : ✗ (Y ) RLYJWLY ) ✗ (X ) RLXJWCX )
Y .
In the transaction T , ,
T, waits
for the lock until T2
commits .