Question

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

Option 1 : T2 is wounded (aborted and restarted with the same timestamp) and T1 gets the lock / T2 को वुंड किया जाता है (अबॉर्ट कर उसी टाइमस्टैंप से पुनः आरंभ) और T1 को लॉक मिलता है

Advertisement

Detailed Solution

सही उत्तर T2 is wounded (aborted and restarted with the same timestamp) and T1 gets the lock / T2 को वुंड किया जाता है (अबॉर्ट कर उसी टाइमस्टैंप से पुनः आरंभ) और T1 को लॉक मिलता है है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

Under the wound-wait deadlock prevention scheme, T1 with timestamp 100 requests an exclusive lock on an item held by T2 with timestamp 200. (Smaller timestamp = older transaction.) What happens? / वुंड-वेट डेडलॉक निवारण योजना के अंतर्गत, टाइमस्टैंप 100 वाला T1 उस आइटम पर एक्सक्लूसिव लॉक माँगता है जो टाइमस्टैंप 200 वाले T2 के पास है। (छोटा टाइमस्टैंप = पुराना लेन-देन।) क्या होगा?

1.
T2 is wounded (aborted and restarted with the same timestamp) and T1 gets the lock / T2 को वुंड किया जाता है (अबॉर्ट कर उसी टाइमस्टैंप से पुनः आरंभ) और T1 को लॉक मिलता है
2.
T1 waits until T2 releases the lock / T1 तब तक प्रतीक्षा करता है जब तक T2 लॉक न छोड़ दे
3.
T1 is aborted because it is younger / T1 अबॉर्ट हो जाता है क्योंकि वह छोटा है
4.
Both transactions are aborted / दोनों लेन-देन अबॉर्ट हो जाते हैं

Correct Answer: T2 is wounded (aborted and restarted with the same timestamp) and T1 gets the lock / T2 को वुंड किया जाता है (अबॉर्ट कर उसी टाइमस्टैंप से पुनः आरंभ) और T1 को लॉक मिलता है

In wound-wait, when an older transaction requests an item held by a younger one, the older wounds (preempts) the younger: T2 rolls back and restarts later with timestamp 200, while T1 proceeds. / वुंड-वेट में जब पुराना लेन-देन छोटे द्वारा धारित आइटम माँगता है, तो पुराना छोटे को वुंड (प्रीएम्प्ट) करता है: T2 रोलबैक होकर टाइमस्टैंप 200 के साथ बाद में पुनः आरंभ होता है, जबकि T1 आगे बढ़ता है।

Downloaded from PrepSnap (prepsnap.in)