1 / 8

Concurrent Access Problems

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

nola-duffy
Download Presentation

Concurrent Access Problems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Concurrent Access Problems On Transaction Processing

  2. Concurrent Access Problems • 3 Problems: • Lost Updates • Uncommitted Data • Inconsistent Retrieval

  3. Lost Updates Assume Transaction 1: Update Inventory set PROD_QOH=PROD_QOH+100; Transaction 2: Update Inventory set PROD_QOH=PROD_QOH-30;

  4. Lost Updates • Transaction 1: 3 processes • Read PROD_QOH • PROD_QOH=PROD_QOH+100 • WRITE PROD_QOH

  5. Lost Updates Table 9.2 Table 9.3

  6. Uncommitted Data Assume Transaction 1: Update Inventory set PROD_QOH=PROD_QOH+100; Rollback; Transaction 2: Update Inventory set PROD_QOH=PROD_QOH-30;

  7. Uncommitted Data Table 9.4 Table 9.5

  8. Inconsistent Retrievals Table 9.6 Table 9.7

More Related