Professional Documents
Culture Documents
Dist Trans N Conc Cont
Dist Trans N Conc Cont
Distributed Transactions
8
Transaction System Architecture
17
Database System Concepts 19.17 ©Silberschatz, Korth and Sudarshan
18
Database System Concepts 19.18 ©Silberschatz, Korth and Sudarshan
9
Concurrency Control
35
Database System Concepts 19.35 ©Silberschatz, Korth and Sudarshan
Single-Lock-Manager Approach
36
Database System Concepts 19.36 ©Silberschatz, Korth and Sudarshan
18
Single-Lock-Manager Approach (Cont.)
! The transaction can read the data item from any one of the sites
at which a replica of the data item resides.
! Writes must be performed on all replicas of a data item
! Advantages of scheme:
! Simple implementation
! Simple deadlock handling
! Disadvantages of scheme are:
! Bottleneck: lock manager site becomes a bottleneck
! Vulnerability: system is vulnerable to lock manager site failure.
37
Database System Concepts 19.37 ©Silberschatz, Korth and Sudarshan
19
Primary Copy
39
Database System Concepts 19.39 ©Silberschatz, Korth and Sudarshan
Majority Protocol
40
Database System Concepts 19.40 ©Silberschatz, Korth and Sudarshan
20
Majority Protocol (Cont.)
Biased Protocol
42
Database System Concepts 19.42 ©Silberschatz, Korth and Sudarshan
21