Question

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

Option 4 : S is non-recoverable because T2 committed based on T1's uncommitted (later aborted) write / S गैर-रिकवरेबल है क्योंकि T2 ने T1 के अनकमिटेड (बाद में अबॉर्टेड) राइट के आधार पर कमिट किया

Advertisement

Detailed Solution

सही उत्तर S is non-recoverable because T2 committed based on T1's uncommitted (later aborted) write / S गैर-रिकवरेबल है क्योंकि T2 ने T1 के अनकमिटेड (बाद में अबॉर्टेड) राइट के आधार पर कमिट किया है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Schedule S: T1 writes X (X: 100→200); T2 reads X (sees 200); T1 aborts; T2 commits. Which statement about S is correct? / शेड्यूल S: T1, X लिखता है (X: 100→200); T2, X पढ़ता है (200 देखता है); T1 अबॉर्ट होता है; T2 कमिट होता है। S के बारे में कौन-सा कथन सही है?

1.
S is recoverable because T2 committed after reading / S रिकवरेबल है क्योंकि T2 ने पढ़ने के बाद कमिट किया
2.
S is cascadeless because T1 aborted / S कैस्केडलेस है क्योंकि T1 अबॉर्ट हुआ
3.
S is strict because T2 read only committed data / S स्ट्रिक्ट है क्योंकि T2 ने केवल कमिटेड डेटा पढ़ा
4.
S is non-recoverable because T2 committed based on T1's uncommitted (later aborted) write / S गैर-रिकवरेबल है क्योंकि T2 ने T1 के अनकमिटेड (बाद में अबॉर्टेड) राइट के आधार पर कमिट किया

Correct Answer: S is non-recoverable because T2 committed based on T1's uncommitted (later aborted) write / S गैर-रिकवरेबल है क्योंकि T2 ने T1 के अनकमिटेड (बाद में अबॉर्टेड) राइट के आधार पर कमिट किया

Recoverability requires that a transaction commit only after every transaction whose uncommitted data it read has committed. T2 committed after reading T1's dirty value, and T1 then aborted — the database can never be restored to a consistent state reflecting T2's commit, so S is non-recoverable. / रिकवरेबिलिटी अपेक्षा करती है कि लेन-देन तभी कमिट करे जब उसके द्वारा पढ़े गए अनकमिटेड डेटा वाले प्रत्येक लेन-देन ने कमिट कर लिया हो। T2 ने T1 का डर्टी मान पढ़कर कमिट किया और फिर T1 अबॉर्ट हुआ — T2 के कमिट को दर्शाने वाली संगत अवस्था कभी पुनः स्थापित नहीं हो सकती, अतः S गैर-रिकवरेबल है।

Downloaded from PrepSnap (prepsnap.in)