Professional Documents
Culture Documents
Lecture 21
Lecture 21
Lecture 19
Lecturer
Department of CS
Faculty of
Computing&AI
Content
s
1 Transactions and Concurrency Control
Overview
ACID Properties of Transactions
Atomicity
Consistency
Isolation
Durability
2 Errors
and Recovery
in DBMS
3 Ensuring
ACID in
Transactions
aaEnsuring
Isolation
Overvie
w
move 100 PKR from Account_A to Account_B
Overvie
w
6 ACTIONS TO BE PERFORMED
TRANSACTION
Atomicit
y
TRANSACTION
Consistenc
y
transaction should bring the database from one valid state
to
another valid state
TRANSACTION
Locking
protects the database objects from other
transactions
held for duration of transaction
Ensuring
Isolation
Types of Locks
S-LOCK: shared locks for reads
X-LOCK: exclusive locks for writes
Ensuring
Isolation