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

Discussion

Selecting the victim to be rolled back to its previous state is determined by the minimum cost. The factors determining the cost of a rollback are

  • A.How long the transaction has computed, and how much longer the transaction will compute before it completes its designated task.
  • B.How many data items the transaction has used.
  • C.How many more data items the transaction needs for it to complete and how many transactions will be involved in the rollback.
  • D.All of the above

Answer: D

Correct answer: All of the above

Choosing the victim means choosing the cheapest rollback, and all three factors bear on the cost: how much work would be lost and how much remains, how many data items the transaction has already used, and how many more it needs and how many other transactions the rollback would drag in. A further consideration is how often a transaction has already been rolled back, so that no transaction is starved.

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

Post your comment

Please log in or register to post a comment.