A server manages data items, and allows read and write
operations. Give three serialisable schedules of the following
transactions
T: R(j),R(i),W(j,44),W(i,33)
U: R(k),W(i,55),R(i),W(k,66)
For transactions T and U, explain which of the following
interleavings can occur with strict two phase locking and with
optimistic concurrency control. Compare the possible outcomes
in timestamping where
TST < TSU and
TST > TSU
RT(i), WU(i, 55), WT(j, 44), WU(j, 66)
RT(i), WT(j, 44), WU(i, 55), WU(j, 66)
WU(i, 55), WU(j, 66), RT(i), WT(j, 44)
WU(i, 55), RT(i), WU(j, 66), WT(j, 44)
WU(i, 55), RT(i), WT(j, 44), WU(j, 66)
Define an inconsistent retrieval. What pattern of
operational conflicts may lead to an inconsistent retrieval
Why might the start time of a transaction not be the best
time to allocate its timestamp? Given the timestamps of two
committed transactions, can you always draw their serialisation
graphs? Compare the overhead of implementing locking with that
of timestamping