In a high-concurrency database system, two transactions are waiting for each…

2026

In a high-concurrency database system, two transactions are waiting for each other's locked resources. What is the most effective automatic way for a DBMS to handle this situation ?

  1. A.

    Switching from pessimistic to optimistic locking

  2. B.

    Increase the size of the database buffer cache

  3. C.

    Deadlock detection and victim selection

  4. D.

    Deadlock prevention using spooling

Attempted by 103 students.

Show answer & explanation

Correct answer: C

The scenario describes a deadlock where transactions wait for each other's resources. The most effective automatic DBMS mechanism is deadlock detection followed by victim selection to resolve the conflict.

Explore the full course: Niacl Ao It Specialist