1.

Lock timeouts have which of the following advantages?(a) Unnecessary rollbacks do not occur(b) Transactions do not starve(c) It is easy to implement(d) All of the mentionedI have been asked this question at a job interview.This intriguing question originated from Deadlock Handling topic in chapter Concurrency Control of RDBMS

Answer»

Right answer is (d) All of the mentioned

The EXPLANATION: In lock timeout METHOD, unnecessary rollbacks do not occur, TRANSACTIONS do not starve and it is also easy to implement and is HENCE WIDELY used if transactions are short and long waits are likely to be due to deadlocks.



Discussion

No Comment Found

Related InterviewSolutions