If transaction A holds a shared lock on R and if transaction B also requests a…

2018

If transaction A holds a shared lock on R and if transaction B also requests a shared lock on R, it will —

  1. A.

    result in a deadlock situation

  2. B.

    immediately be granted

  3. C.

    immediately be rejected

  4. D.

    be granted as soon as it is released by A

Attempted by 403 students.

Show answer & explanation

Correct answer: B

Shared locks are compatible with other shared locks. So multiple transactions can read the same data item simultaneously.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Up Lt Grade Assistant Teacher 2025