What is TRUE about Two-phase locking?

15. What is TRUE about Two-phase locking?

  1. As long as the transaction is already running, it will try to obtain the required lock in the first part.
  2. As long as the transaction is already running, it will try to obtain the required lock in the second part.
  3. As long as the transaction is already running, it will try to obtain the required lock in the third part.
  4. 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.

Comments and Discussions!





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.