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

Discussion

If a transaction T has obtained an exclusive lock on item Q, then T can

  • A.read Q
  • B.write Q

  • C.both read and write Q
  • D.write Q but not read Q

Answer: C

Correct answer: both read and write Q

An exclusive lock gives the holder complete access - it may both read and write the item - and excludes every other transaction. A shared lock permits reading only, but allows other readers at the same time.

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

Post your comment

Please log in or register to post a comment.