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.
II and IV
A pessimistic (conservative) concurrency-control protocol checks for conflicts before each read or write is allowed, assuming conflicts are likely. An optimistic protocol lets a transaction run freely and checks for conflicts only at the end, in a validation phase.
Two phase locking makes a transaction acquire a lock before every access and blocks it when the lock conflicts, so it is pessimistic: I is false and II is true.
Timestamp ordering compares the transaction's timestamp with the read/write timestamps of the item at every operation and rejects (rolls back) a conflicting operation immediately, so it also checks before execution and is pessimistic: III is false and IV is true.
The optimistic family is the validation-based protocol, not locking or timestamping. So the true statements are II and IV.
Hence, the answer is II and IV.
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
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-
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
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-