









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










♦ Properties of transactions: ACID
♦ Concurrency control is needed Example: the lost update problem
Locking: A procedure used to control concurrent access to data. When one transaction is accessing the database, a lock may deny access to other transactions to prevent incorrect results.
♦ Shared lock (read lock) : If a transaction has a shared lock on a data item, it can read the item but not update it. ♦ Exclusive lock (write lock) : If a transaction has an exclusive lock on a data item, it can both read and update the item.
♦ A transaction follows 2PL protocol if all locking operations precede first unlock operation in the transaction
♦ Two phases for transaction:
An impasse that may result when two (or more) transactions are each waiting for locks to be released that are held by the other.
rolling back only part of the transaction.