Chapter 1 Transaction Management & Concurrency Control
Chapter 1 Transaction Management & Concurrency Control
Transaction
Management and
Concurrency Control
1 Transaction and Concurrency Management
Chapter 1 - Objectives
Function and importance of transactions.
Properties of transactions.
Concurrency Control
Meaning of serializability.
How locking can ensure serializability.
Deadlock and how it can be resolved.
How timestamping can ensure
serializability.
Optimistic concurrency control.
Granularity of locking.
Serial Schedule
Schedule where operations of each transaction are
executed consecutively without any interleaved
operations from other transactions.
No guarantee that results of all serial executions
of a given set of transactions will be
identical(Operation Precedence).
21 Transaction and Concurrency Management
Non-serial Schedule
Schedule where operations from set of
concurrent transactions are interleaved.
Objective of serializability is to find non-serial
schedules that allow transactions to execute
concurrently without interfering with one
another.
In other words, want to find non-serial
schedules that are equivalent to some serial
schedule. Such a schedule is called serializable.
Read
Validation
Write ( Only for an Update Transaction-
involving any DB modification)