ADSI Notes - Diogo Lopes

Search

Search IconIcon to open search

Lecture 7 - Transactions and concurrency pt.2

Last updated Mar 17, 2023

Slides

# Locks and Time

# Tree Protocol

The tree protocol ensures conflict serializability as well as freedom from deadlock

Drawbacks

# Granularity Hierarchy

The levels, starting from the coarsest (top) level can be

When a transaction locks a node in S or X mode, it implicitly locks all descendants in the same mode (S or X).

# Intention Lock Modes

# Timestamp Based Protocols

Each transaction Ti is issued a timestamp TS( Ti ) when it enters the system.

# Timestamp Ordering Protocol

Maintains for each data Q two timestamp values:

Imposes rules on read and write operations to ensure that

# Multiversion Timestamp Ordering

Notes

# Snapshot Isolation

Snapshot isolation does NOT ensure serializability

Lecture 6 Transactions and concurrency | Lecture 8 Database Recovery