More Locking, Start Time Stamp Scheduling




CS157b

Chris Pollett

Apr 16, 2018

Outline

Introduction

A Lock Table Entry

Diagram of Lock Table Entry

Handling Locking

Handling Unlocking

Quiz

Which of the following statements is true?

  1. To make an archive dump we have to shutdown the database so that it can't receive transactions.
  2. A serial schedule might not be conflict serializable.
  3. Using 2PL guarantees conflict serializable schedules.

Lock Granularity

Table Locks

Tree of Locks

Warning Lock Compatibility Matrix

Phantoms and Handling Insertions Correctly

The Tree Protocol (Silberschatz Kedem 1980)

Other Concurrency Control Techniques

Timestamps

Physically Unrealizable Behaviors

Problems with Dirty Data