support concurrent update

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

Upload: cristopher-ian

Post on 17-Jan-2016

241 views

Category:

Documents


0 download

DESCRIPTION

Support concurrent update

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.