Lock

What
A lock is a mechanism that allows us to control access to items

Shared Lock
Multiple transactions can hold on to an object at the same time

Exclusive Lock
Only one transaction can hold on to an object at a given time.

Lock Compatibility
The diagram to the right shows the possible combinations of locks that can be legally held by transactions.