Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock ? (a) 2 - phase Locking (b) Time stamp - ordering
(b) only
Two-phase locking guarantees conflict serializability, but two transactions can each hold a lock the other is waiting for, so deadlock is possible.
Timestamp ordering executes conflicting operations in timestamp order, so the precedence graph has no cycle and schedules are conflict serializable.
Under timestamp ordering a transaction is rolled back instead of waiting, so no deadlock can form.
Hence, (b) 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 :
I. 2-phase locking
II. Time phase 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 :
I. 2-phase locking
II. Time phase 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-