Which modification of the Two-Phase Locking Protocol requires transactions to hold all locks until they commit or abort?
Question
Which modification of the Two-Phase Locking Protocol requires transactions to hold all locks until they commit or abort?
Solution
The modification of the Two-Phase Locking Protocol that requires transactions to hold all locks until they commit or abort is known as Strict Two-Phase Locking (S2PL).
Here are the steps to understand this:
-
Two-Phase Locking Protocol (2PL): This is a protocol in concurrency control of DBMS which allows transactions to acquire a lock prior to accessing data. The protocol has two phases - the expanding phase where locks are acquired and no locks are released, and the shrinking phase where acquired locks are released and no new locks are acquired.
-
Strict Two-Phase Locking (S2PL): This is a modification of the 2PL protocol. In S2PL, a transaction holds all its exclusive locks till it commits or aborts. This means, once a transaction releases a lock, it cannot request any other locks. This is done to prevent cascading rollbacks, which can occur in the standard 2PL protocol.
So, the answer to your question is the Strict Two-Phase Locking (S2PL) protocol.
Similar Questions
In the two-phase locking protocol, a transaction can release its locks before it has obtained all the locks it needs.Question 4AnswerTrueFalse
Which mechanism is commonly used to break deadlocks in a database system?Rollback and RestartTimeout mechanism
A deadlock avoidance algorithm dynamically examines the __________ to ensure that a circular wait condition can never exist.
shared lock is requested using the ___________ instruction.a)lock-sharedb)lock-Xc)lock-Sd)lock-Pe)exclusive(x)
orrect answerWhat one is not a Transaction Control Statement?OptionsCommitSavepointRollbackCommitSet transaction
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.