Shared lock:
- Shared by any number of readers.
- Writers have to wait until the locked item is unlocked.
- Transactions waiting for the lock are delayed.
Exclusive lock:
- Held by one writer.
- Readers and other writers have to wait until the locked item is unlocked.
- Transactions waiting for the lock are delayed.