COMP9315 21T1 Final Exam The University of New South Wales
COMP9315 DBMS Implementation
21T1 Final Exam
DBMS Implementation
[Instructions] [PostgreSQL] [C]
[Q1] [Q2] [Q3] [Q4] [Q5] [Q6] [Q7] [Q8]

Question 8 (6 marks)

Consider the following four transactions and their read/write sets:

TxRead SetWrite Set
T1{A,B}{A,C}
T2{B}{D}
T3{B}{D,E}
T4{A,D}{A,C}

Consider now the following partial schedule for these transactions implemented under an optimistic concurrency control scheme:

  +   +   +   +   +   +   +   +   +   +   +   +   +   +
 
T1:   S           V                   F
T2:       S   V           F
T3:                   S           V           F
T4:                           S           V       F
 
  +   +   +   +   +   +   +   +   +   +   +   +   +   +

Note that the schedule only displays the steps that are critical to optimistic concurrency control:

Using the above schedule describe what happens during the validation for each transaction, and what is the outcome of the validation check. Note that some of the read/write operations in the schedule may not actually occur if the corresponding transaction is rolled back at the validation check.

Show all working.

Instructions:

End of Question