What is a deadlock in DB2, and how is it resolved?

  • A situation where a transaction is blocked by another transaction indefinitely
  • A situation where one transaction holds a lock on a resource and another transaction tries to acquire a conflicting lock, resulting in a waiting deadlock
  • A situation where two or more transactions are unable to proceed because each is waiting for the other to release a lock
  • A situation where two or more transactions are waiting indefinitely for a resource held by each other
Deadlock in DB2 occurs when two transactions hold locks that the other transaction needs to proceed, resulting in a deadlock. It can be resolved by deadlock detection and rollback of one of the transactions involved. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *