Recap

Concurrency control ensures correct execution of transactions in a multi-user database environment by:


Motivation: Why Concurrency Control?

Key Problems

  1. Lost Updates
  1. Dirty Reads (Uncommitted Data)
  1. Inconsistent Analysis (Non-Repeatable Reads)
  1. Phantom Reads

ACID Properties

Property Description
Atomicity "All or nothing" - A transaction either completes fully or not at all.
Consistency Ensures that a transaction maintains database integrity constraints.
Isolation Transactions appear as if executed sequentially (avoiding interference).
Durability Once committed, a transaction’s changes must persist, even after failures.

Example: Transferring $100 from A to B