Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 4 : All exclusive locks are held until the transaction commits or aborts / सभी एक्सक्लूसिव लॉक ट्रांजैक्शन के कमिट या अबॉर्ट होने तक रखे जाते हैं

Advertisement

Detailed Solution

सही उत्तर All exclusive locks are held until the transaction commits or aborts / सभी एक्सक्लूसिव लॉक ट्रांजैक्शन के कमिट या अबॉर्ट होने तक रखे जाते हैं है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

In strict two-phase locking: / स्ट्रिक्ट टू-फेज लॉकिंग में:

1.
Each lock is released as soon as it is no longer needed / प्रत्येक लॉक की आवश्यकता समाप्त होते ही मुक्त कर दिया जाता है
2.
New locks may be acquired during the shrinking phase / श्रिंकिंग चरण में नए लॉक प्राप्त किए जा सकते हैं
3.
Only shared locks are held till commit / केवल शेयर्ड लॉक कमिट तक रखे जाते हैं
4.
All exclusive locks are held until the transaction commits or aborts / सभी एक्सक्लूसिव लॉक ट्रांजैक्शन के कमिट या अबॉर्ट होने तक रखे जाते हैं

Correct Answer: All exclusive locks are held until the transaction commits or aborts / सभी एक्सक्लूसिव लॉक ट्रांजैक्शन के कमिट या अबॉर्ट होने तक रखे जाते हैं

Strict 2PL retains all exclusive (write) locks until commit or abort, guaranteeing strict and recoverable schedules; locks are acquired in the growing phase and only released in the shrinking phase. / स्ट्रिक्ट 2PL सभी एक्सक्लूसिव (राइट) लॉक कमिट या अबॉर्ट तक बनाए रखता है, जिससे स्ट्रिक्ट और पुनर्प्राप्तियोग्य अनुसूचियाँ सुनिश्चित होती हैं; लॉक ग्रोइंग चरण में प्राप्त होते हैं और केवल श्रिंकिंग चरण में मुक्त होते हैं।

Downloaded from PrepSnap (prepsnap.in)