1.

Which of the following steps must be taken while choosing a victim?(a) Avoiding starvation(b) Number of transactions involved in rollback(c) Data items used by the transaction(d) All of the mentionedThis question was posed to me by my college professor while I was bunking the class.My question comes from Deadlock Handling topic in section Concurrency Control of RDBMS

Answer»

The correct answer is (d) All of the mentioned

The best I can explain: While CHOOSING a victim we MUCH choose the ONE with a minimum cost. That is the one which AVOIDS starvation, the one with the least number of TRANSACTION involved in the rollback and the one with the least amount of data items used.



Discussion

No Comment Found

Related InterviewSolutions