1.

If a transaction has obtained a __________ lock, it can read but cannot write on the item(a) Shared mode(b) Exclusive mode(c) Read only mode(d) Write only modeThis question was posed to me in an interview.This interesting question is from Lock Based Protocols topic in chapter Concurrency Control of RDBMS

Answer»

Correct answer is (a) Shared mode

Explanation: If a TRANSACTION Ti has obtained a shared-mode LOCK (denoted by S) on item Q, then Ti can read, but cannot write, Q.



Discussion

No Comment Found

Related InterviewSolutions