[prev] 90 [next]

Optimistic Concurrency Control (cont)

Two-transaction example:
  • allow transactions T1 and T2 to run without any locking
  • check that objects used by T2 are not being changed by T1
  • if they are, we need to roll back T2 and retry
Case 0: serial execution ... no problem

[Diagram:Pics/txproc/occ0.png]