-
Consider the following two phase locking protocol. Suppose a transaction T accesses (for read or write operations), a certain set of objects {O1; ...,Ok}. This is done in the following manner:
Step 1. T acquires exclusive locks to O1,..., Ok in increasing order of their addresses.
Step 2. The required operations are performed.
Step 3. All locks are released. This protocol will
-
- guarantee serializability and deadlock-freedom
- guarantee neither serializability nor deadlock-freedom
- guarantee serializability but not deadlock-freedom
- guarantee deadlock-freedom but not serializability
- guarantee serializability and deadlock-freedom
Correct Option: A
Two phase locking protocol ensures serializability and due to following linear order in acquiring the locks, there will be no deadlock.