2,566 views
0 0 votes

Please explain. Use the below transaction.

2 Answers

1 1 vote

unrepeatable read happens when a transaction read the value of variable twice or more times and in between these reads other transaction change the value of variable causing different read values for first transaction.

so this whole case cant happen in 2PL because no transaction can come in between reads and take exclusive lock for write the value while there is share lock on variable

0 0 votes
Any 2 PL if does not cause deadlock will ensure conflict serializability.

Now every conflict serializable schedule is free from unrepeatable read problem.

So every strict schedule is free from unrepeatable read problem.
Position:
Show:

Related questions

2 2 votes
0 0 answers
972
972 views
vinay chauhan asked Jan 18, 2019
972 views
Is different 2 phase locking a subset of each other? For example, if the schedule is Strict 2PL then it will also be simple 2PL.Something like a 2PL is a subset of Strict...
1 1 vote
1 1 answer
698
698 views
aditi19 asked Nov 25, 2018
698 views
T1: W(X), T2: R(Y), T1: R(Y), T2: R(X)does 2PL protocol allows it? T1 T2L-X(X)W(X)L-S(Y)R(Y)U(X) L-S(Y)R(Y)L-S(X)R(X)here T2 is granted lock on X as T1 enters sh...
1 1 vote
1 1 answer
4.9k
4.9k views
srestha asked Jan 26, 2018
4,942 views
We know, Conservative 2PL is another name of Strict 2PL. But According to Navathe bookConservative 2PL is deadlock free,but Strict 2PL can have deadlock.Then how both cou...