Home »
MCQs »
DBMS MCQs »
DBMS Lock-Based Protocol MCQs
What is TRUE about Two-phase locking?
15. What is TRUE about Two-phase locking?
- As long as the transaction is already running, it will try to obtain the required lock in the first part.
- As long as the transaction is already running, it will try to obtain the required lock in the second part.
- As long as the transaction is already running, it will try to obtain the required lock in the third part.
- As long as the transaction is already running, it will try to obtain the required lock in the fourth part.
Answer: A) As long as the transaction is already running, it will try to obtain the required lock in the first part.
Explanation:
As long as the transaction is already running, it will try to obtain the required lock in the first part.