Since read operations cannot conflict, it is permissible for more than one transaction to
hold shared locks simultaneously on the same item. On the other hand, an exclusive lock
gives a transaction exclusive access to that item. Thus, as long as a transaction holds the
exclusive lock on the item, no other transactions can read or update that data item. Locks
are used in the following way: