Top Banner
Support Concurrent Update Presented by: MATAAC, Gladys G.
12

Support Concurrent Update

Jan 17, 2016

Download

Documents

Cristopher Ian

Support concurrent update
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Support Concurrent Update

Support Concurrent Update

Presented by: MATAAC, Gladys G.

Page 2: Support Concurrent Update

Concurrent Update

• occurs when multiple users make updates to the same database at the same time.

Page 3: Support Concurrent Update

The Concurrent Update Problem

Page 4: Support Concurrent Update
Page 5: Support Concurrent Update
Page 6: Support Concurrent Update

`

Page 7: Support Concurrent Update

Batch Processing

Page 8: Support Concurrent Update

Batch Processing

• processing technique in which a single update program reads the batch of records in this file one at a time and erforms the appropriate updates to the database.

Page 9: Support Concurrent Update

Two-Phase Locking

• Locking- denies ither users access to data while the DBMS processes one user's update to the database

Page 10: Support Concurrent Update
Page 11: Support Concurrent Update
Page 12: Support Concurrent Update

Two-Phase Locking

• Two-Phase Locking- approach of handling locks where the DBMS hold locks until it completes all the updates in the transaction.– Growing Phase- fist phase in which the

DBMS locks more rows and releases none of the locks.

– Shrinking Phase- second phase in which the DBMS releases all the locks and acquires no new locks.