Professional KnowledgeHardIBPS SO IT
Under strict two-phase locking, a transaction releases its exclusive locks:
- A. Immediately after use
- B. At the end of the growing phase
- C. Before it requests shared locks
- D. Only at commit or abort
Correct answer: D. Only at commit or abort
Strict 2PL holds X locks till termination, which avoids cascading aborts.
Practise more IT Officer Professional Knowledge (IBPS SO) questionsIT Officer Professional Knowledge (IBPS SO): notes and key points
More IT Officer Professional Knowledge (IBPS SO) questions
- In the wait-die scheme, what happens when a transaction requests a lock held by another?
- In timestamp ordering, a write W(Q) by T is rejected if:
- Which of these is the strongest class of schedules?
- Which ACID properties are primarily enforced by the recovery manager using logs?
- For a file of 30,000 records with block size 1024 bytes and record size 100 bytes (unspanned), the number of blocks is:
- Number of blocks in a sparse index over a file of 1000 blocks where 100 index entries fit per block: