Transaction uses locks to deny access to other transactions and so prevent incorrect updates.
Types of Locks:
- Binary Lock: This locking mechanism has two states for a data item.
- Multiple-mode Lock: In this locking type each data item can be in three states.
- Read locked or shared locked
- Write lock or exclusive lock