Match List I with List II Choose the correct answer from the options given below:List I List II A. Timestamp protocol I. As long as the transaction is already running, it will try to obtain the required lock in the first part B. Strict two-phase locking protocol II. Indicates final lock of the schedule C. Two-phase locking III. Ensures freedom from deadlock D. Lock point in two phase locking protocol IV. Ensures cascade -less rollback
A-III, B-IV, C-I, D-II
Concurrency-control protocols are judged by the guarantees they give: deadlock freedom, recoverability (cascade-less rollback) and the shape of their locking phases.
A. Timestamp protocol — every transaction gets a timestamp when it starts and conflicting operations are executed in timestamp order. A transaction that would violate this order is rolled back and restarted; it never waits for a lock. Since no transaction waits, no wait-for cycle can form, so the protocol ensures freedom from deadlock (III).
B. Strict two-phase locking — in addition to the two-phase rule, every exclusive lock is held until the transaction commits or aborts. No other transaction can read a value written by an uncommitted transaction, so an abort never forces other transactions to roll back: cascade-less rollback (IV).
C. Two-phase locking — in the first (growing) phase, as long as the transaction is running it obtains the locks it requires and releases none; releasing starts only in the second (shrinking) phase (I).
D. Lock point — the instant at which a two-phase transaction acquires its last lock, i.e. the end of the growing phase. It indicates the final lock (II), and the lock points give the serialization order.
Codes that pair the timestamp protocol with cascade-less rollback are wrong because basic timestamp ordering can let a transaction read an uncommitted write. Codes that pair strict two-phase locking with deadlock freedom or with the final lock are wrong because strict two-phase locking can still deadlock and the final lock is the lock point. A code that pairs two-phase locking with the final lock ignores that two-phase locking describes the whole growing/shrinking discipline.
A-III, B-IV, C-I, D-II option is correct.
Which of the following is correct ?
I. Two phase locking is an optimistic protocol.
II. Two phase locking is pessimistic protocol
III. Time stamping is an optimistic protocol.
IV. Time stamping is pessimistic protocol.
Match the following :
| List - I | List - II |
| a. Timeout ordering protocol | i. Wait for graph |
| b. Deadlock prevention | ii. Roll back |
| c. Deadlock detection | iii. Wait-die scheme |
| d. Deadlock recovery | iv. Thomas Write Rule |
Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock :
I. 2-phase locking
II. Time phase ordering
Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock ?
(a) 2 - phase Locking
(b) Time stamp - ordering
In concurrency control, phantom problem may occur, when-
Which of the following is correct ?
I. Two phase locking is an optimistic protocol.
II. Two phase locking is pessimistic protocol
III. Time stamping is an optimistic protocol.
IV. Time stamping is pessimistic protocol.
Match the following :
| List - I | List - II |
| a. Timeout ordering protocol | i. Wait for graph |
| b. Deadlock prevention | ii. Roll back |
| c. Deadlock detection | iii. Wait-die scheme |
| d. Deadlock recovery | iv. Thomas Write Rule |
Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock :
I. 2-phase locking
II. Time phase ordering
Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock ?
(a) 2 - phase Locking
(b) Time stamp - ordering
In concurrency control, phantom problem may occur, when-