Download presentation
Presentation is loading. Please wait.
Published byLizbeth Payne Modified over 9 years ago
1
Copyright © 2004 Pearson Education, Inc.
2
Chapter 18 Concurrency Control Techniques
3
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-3 FIGURE 18.1 Lock and unlock operations for binary locks.
4
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-4 FIGURE 18.2 Locking and unlocking operations for two- mode (read-write or shared-exclusive) locks.
5
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-5 FIGURE 18.3 Transactions that do not obey two-phase locking. (a) Two transactions T 1 and T 2. (b) Results of possible serial schedules of T 1 and T 2.
6
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-6 FIGURE 18.3 Transactions that do not obey two-phase locking. (c) A nonserializable schedule S that uses locks.
7
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-7 FIGURE 18.4 Transactions T 1 and T 2, which are the save as T 1 and T 2 of Figure 18.3 but which allow the two-phase locking protocol. Not that they can produce a deadlock.
8
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-8 FIGURE 18.5 Illustrating the deadlock problem. (a) A partial schedule of T 1 and T 2 that is in a state of deadlock. (b) A wait- for graph for the partial schedule in (a).
9
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-9 FIGURE 18.6 Lock compatibility tables. (a) A compatibility table for read/write locking scheme. (b) A compatibility table for read/write/certify locking scheme.
10
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-10 FIGURE 18.7 A granularity hierarchy for illustrating multiple granularity level locking.
11
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-11 FIGURE 18.8 Lock compatibility matrix for multiple granularity locking.
12
Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 18-12 FIGURE 18.9 Lock operations to illustrate a serializable schedule.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.