Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Does the following transactions follow the 2PL (two Phase Locking) protocol? And explain your answer, if No rewrite the new Transactions after enforcing 2PL protocol?
Does the following transactions follow the 2PL (two Phase Locking) protocol? And explain your answer, if No rewrite the new Transactions after enforcing 2PL protocol?
T1 T2
read_lock (Y); read_lock (X);
read_item (Y); read_item (X);
unlock (Y); unlock (X);
write_lock (X); Write_lock (Y);
read_item (X); read_item (Y);
X:=X+Y; Y:=X+Y;
write_item (X); write_item (Y);
unlock (X); unlock (Y);
Q2 -
(a). What is meant by Roll-back and Roll-Forward?
(b). Discuss the analysis phase and REDO phase?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started