Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock : I. 2-phase locking II. Time phase ordering
II only
Two-phase locking guarantees conflict serializability, but transactions can wait for each other's locks in a cycle, so deadlocks are possible.
Timestamp ordering serializes transactions in timestamp order and never makes a transaction wait; a conflicting transaction is rolled back instead, so no deadlock can arise.
So only the ordering protocol (statement II) gives both properties.
Hence, II only.
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 ?
(a) 2 - phase Locking
(b) Time stamp - ordering
Match List I with List II
| 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 |
Choose the correct answer from the options given below:
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 ?
(a) 2 - phase Locking
(b) Time stamp - ordering
Match List I with List II
| 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 |
Choose the correct answer from the options given below:
In concurrency control, phantom problem may occur, when-