Escolar Documentos
Profissional Documentos
Cultura Documentos
Lecture
Concurrency Control
Contents
Introduction
Concurrency Control vs. Serializability Tests
Weak
W k Levels
L
l off C
Consistency
i t
Transaction Definition in SQL
Locking Schemes
Applications
Scope of Research
Introduction
A database must provide a mechanism that will ensure that all possible
schedules are
z
serial schedules
schedules, but provides a poor degree of concurrency
z
l t !
late!
Goal to develop concurrency control protocols that will assure
serializability.
protocol is correct.
E.g.
E
g a read-only transaction that wants to get an approximate total
balance of all accounts
also
l commits
it iimplicitly
li itl if it executes
t successfully
f ll
z
E.g. in JDBC,
connection.setAutoCommit(false);
Implementation of Isolation
Schedules must be conflict or view serializable, and recoverable,
Locking Scheme
Exclusive Lock
Shared Lock
Applications
Scope of Research
Isolation
I l ti requirements
i
t iin concurrency control
t l
Thread safety for concurrent clients
Concurrency
y control in distributed database systems
y
Realization of Transaction Concurrency Control in Grid
Database
Realization of concurrency control in grid data bases