Question: Why the transactions schedule below is violating two- phase policy? Database Concurrency Control Two-Phase Locking Techniques: The algorithm T1 read_lock (Y); read item (Y);

Why the transactions schedule below is violating two- phase policy? Database Concurrency

Why the transactions schedule below is violating two- phase policy? Database Concurrency Control Two-Phase Locking Techniques: The algorithm T1 read_lock (Y); read item (Y); unlock (Y); Time write_lock (X); read item (X); X:=X+Y; write_item (X); unlock (X); T2 read_lock (X); read_item (X): unlock (X); write_lock (Y); read_item (Y); Y:=X+Y; write_item (Y); unlock (Y); Result X=50; Y=50 Nonserializable because it. violated two-phase policy.

Step by Step Solution

3.39 Rating (152 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer In two phase locking there needs to be a fi... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!