Exams › GATE › Technical
Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?
- 2PL permits only serializable schedules
- With 2PL, a transaction always locks the data item being read or written just before every operation and always releases the lock just after the operation
- With 2PL, once a lock is released on any data item inside a transaction, no more locks on any data item can be obtained inside that transaction
- A deadlock is possible with 2PL
Correct answer: A deadlock is possible with 2PL
Solution
Deadlocks can occur in the Two Phase Locking protocol because transactions may hold locks while waiting for other locks to be released, leading to a situation where two or more transactions are waiting indefinitely for each other.
Related GATE Technical questions
- Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?
- Consider the following C function definition.
int fX(char *a){
char *b = a;
while (*b)
b++;
return b - a;}
Which of the following statements is/are TRUE?
- The three-dimensional state of stress at a point is given by σ = [[10, 0, 0],[0, 40, 0],[0, 0, 0]] MPa. The maximum shear stress at the point is
- A 2 m wide strip footing is founded at a depth of 1.5 m below the ground level in a homogeneous pure clay bed. The clay bed has unit cohesion of 40 kPa. Due to seasonal fluctuations of water table from peak summer to peak monsoon period, the net ultimate bearing capacity of the footing, as per Terzaghi’s theory, will
- Consider the statements P and Q.
P: Soil particles formed by mechanical weathering, and close to their origin are generally subrounded.
Q: A activity of the clay physically signifies its swell potential.
Which one of the following options is CORRECT?
- The number of degrees of freedom for a natural open channel flow with a mobile bed is
⚔️ Practice GATE Technical free + battle 1v1 →