Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago