80 likes | 197 Vues
This article discusses three major concurrent access problems in transaction processing: Lost Updates, Uncommitted Data, and Inconsistent Retrieval. It explains how lost updates occur when multiple transactions attempt to update the same data simultaneously, leading to the loss of one transaction's result. Uncommitted data refers to the scenario where one transaction reads data modified by another uncommitted transaction. Inconsistent retrieval occurs when a transaction retrieves data that is being modified by other transactions. Examples and tables are provided for better understanding.
E N D
Concurrent Access Problems On Transaction Processing
Concurrent Access Problems • 3 Problems: • Lost Updates • Uncommitted Data • Inconsistent Retrieval
Lost Updates Assume Transaction 1: Update Inventory set PROD_QOH=PROD_QOH+100; Transaction 2: Update Inventory set PROD_QOH=PROD_QOH-30;
Lost Updates • Transaction 1: 3 processes • Read PROD_QOH • PROD_QOH=PROD_QOH+100 • WRITE PROD_QOH
Lost Updates Table 9.2 Table 9.3
Uncommitted Data Assume Transaction 1: Update Inventory set PROD_QOH=PROD_QOH+100; Rollback; Transaction 2: Update Inventory set PROD_QOH=PROD_QOH-30;
Uncommitted Data Table 9.4 Table 9.5
Inconsistent Retrievals Table 9.6 Table 9.7