3.1.9 Transactions and Concurrency

  1. A server manages data items, and allows read and write operations. Give three serialisable schedules of the following transactions
  2. 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
    1. RT(i), WU(i, 55), WT(j, 44), WU(j, 66)
    2. RT(i), WT(j, 44), WU(i, 55), WU(j, 66)
    3. WU(i, 55), WU(j, 66), RT(i), WT(j, 44)
    4. WU(i, 55), RT(i), WU(j, 66), WT(j, 44)
    5. WU(i, 55), RT(i), WT(j, 44), WU(j, 66)
  3. Define an inconsistent retrieval. What pattern of operational conflicts may lead to an inconsistent retrieval
  4. 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

The answer.

Ian Wakeman 2005-02-22