1.

Which lock should be obtained to prevent a concurrent transaction from executing a conflicting read, insert or delete operation on the same key value.(a) Higher-level lock(b) Lower-level lock(c) Read only lock(d) Read writeI have been asked this question by my school principal while I was bunking the class.Question is from Lock Release and Undo Operations in division Recovery System of Database Management

Answer»

Correct OPTION is (a) Higher-level lock

To explain: Operations acquire lower-level locks while they execute, but RELEASE them when they COMPLETE; the CORRESPONDING transaction MUST however retain a higher-level lock in a two-phase manner to prevent concurrent transactions from executing conflicting actions.



Discussion

No Comment Found

Related InterviewSolutions