Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2004 Pearson Education, Inc.. Chapter 17 Introduction to Transaction Processing Concepts and Theory.

Similar presentations


Presentation on theme: "Copyright © 2004 Pearson Education, Inc.. Chapter 17 Introduction to Transaction Processing Concepts and Theory."— Presentation transcript:

1 Copyright © 2004 Pearson Education, Inc.

2 Chapter 17 Introduction to Transaction Processing Concepts and Theory

3 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-3 FIGURE 17.1 Interleaved processing versus parallel processing of concurrent transactions.

4 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-4 FIGURE 17.2 Two sample transactions. (a) Transaction T 1. (b) Transaction T 2.

5 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-5 FIGURE 17.3 Some problems that occur when concurrent execution is uncontrolled. (a) The lost update problem.

6 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-6 FIGURE 17.3 (continued) Some problems that occur when concurrent execution is uncontrolled. (b) The temporary update problem.

7 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-7 FIGURE 17.3 (continued) Some problems that occur when concurrent execution is uncontrolled. (c) The incorrect summary problem.

8 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-8 FIGURE 17.4 State transition diagram illustrating the states for transaction execution.

9 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-9 FIGURE 17.5 Examples of serial and nonserial schedules involving transactions T 1 and T 2. (a) Serial schedule A: T 1 followed by T 2. (b) Serial schedules B: T 2 followed by T 1.

10 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-10 FIGURE 17.5 (continued) Examples of serial and nonserial schedules involving transactions T 1 and T 2. (c) Two nonserial schedules C and D with interleaving of operations.

11 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-11 FIGURE 17.6 Two schedules that are result equivalent for the initial value of X = 100 but are not result equivalent in general.

12 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-12 FIGURE 17.7 Constructing the precedence graphs for schedules A and D from Figure 17.5 to test for conflict serializability. (a) Precedence graph for serial schedule A. (b) Precedence graph for serial schedule B. (c) Precedence graph for schedule C (not serializable). (d) Precedence graph for schedule D (serializable, equivalent to schedule A).

13 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-13 FIGURE 17.8 Another example of serializability testing. (a) The READ and WRITE operations of three transactions T 1, T 2, and T 3.

14 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-14 FIGURE 17.8 (continued) Another example of serializability testing. (b) Schedule E.

15 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-15 FIGURE 17.8 (continued) Another example of serializability testing. (c) Schedule F.

16 Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition Copyright © 2004 Pearson Education, Inc. Slide 17-16 FIGURE 17.8 (continued) Another example of serializability testing. (d) Precedence graph for schedule E. (e) Precedence graph for schedule F. (f) Precedence graph with two equivalent serial schedules.


Download ppt "Copyright © 2004 Pearson Education, Inc.. Chapter 17 Introduction to Transaction Processing Concepts and Theory."

Similar presentations


Ads by Google