Machine-translated by Google. Questions are authored in English.
Top

Discussion

Assume transaction A holds a shared lock R. If transaction B also requests for a shared lock on R.

  • A.It will result in a deadlock situation.
  • B.It will immediately be rejected.
  • C.It will immediately be granted.
  • D.It will be granted as soon as it is released by A .

Answer: C

Correct answer: It will immediately be granted.

Shared locks are compatible with one another, since reading does not interfere with reading. B would have to wait only if A held an exclusive lock or if B were asking for one.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.