Question
Option 1 : T2 is wounded (aborted and restarted with the same timestamp) and T1 gets the lock / T2 को वुंड किया जाता है (अबॉर्ट कर उसी टाइमस्टैंप से पुनः आरंभ) और T1 को लॉक मिलता है
Detailed Solution
सही उत्तर T2 is wounded (aborted and restarted with the same timestamp) and T1 gets the lock / T2 को वुंड किया जाता है (अबॉर्ट कर उसी टाइमस्टैंप से पुनः आरंभ) और T1 को लॉक मिलता है है।
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 के पास है। (छोटा टाइमस्टैंप = पुराना लेन-देन।) क्या होगा?
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 आगे बढ़ता है।