Question: This question is NOT related to the previous questions. Given below are two transactions T 1 and T 2 . Here T 1 and T

This question is NOT related to the previous questions. Given below are two transactions T1 and T2. Here T1 and T2 are NOT in a SCHEDULE. We only show them as two separate transactions.
T1
Read(A)
Read(B)
write(A)
Write(B)
Read(D)
Write(D)
T2
Read(C)
Write(C)
Read(A)
Read(D)
Write(A)
Your task: Upload a file containing your HAND-WRITTEN answer to the following question:
ADD lock_S, lock_X, and unlock statements of appropriate lock MODE to the above 2 transactions according to the two-phase locking protocol. Show the resulting transactions T1', T2'. You do NOT need to show T1', T2' in a schedule, just list each one of them as a modified transaction with the added locking/unlocking statements.
Write your NAME on the sheet with your answers. One point will be deducted if your answer is not hand-written or your name is missing.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!