Database 2.2
Database 2.2
(University of Choice)
UNIVERSITY EXAMINATIONS
2019/2020 ACADEMIC YEAR
DATE: TIME:
INSTRUCTIONS TO CANDIDATES
TIME: 2 Hours
MMUST observes ZERO tolerance to examination cheating
This Paper Consists of 4 Printed Pages. Please Turn Over.
a) Explain why the above schedule could result in update errors in a database without
concurrency control. [5 Marks]
b) Locking could be used to allow concurrent execution of the three transactions t1,
t2 and t3.
i. Explain how locking works, and how it interacts with the transaction mechanism.
[9 Marks]
ii. Demonstrate the effect of locking on the schedule shown above. [6 Marks]