SSC IMD SA 2017 – Question 187

Question:

A deadlock in a set of transactions can be determined by:

लेनदेन के सेट में डेडलॉक को किसके द्वारा निर्धारित किया जा सकता है

Options:

  • Read-only graph
  • Wait graph
  • Wait-for graph
  • All options are correct
  • रीड-ओनली ग्रााफ़
  • वेट ग्रााफ़
  • वेट-फॉर ग्रााफ़
  • सभी विकल्प सही हैं

Correct Answer: a)

Explanation:

Detailed Explanation:

The correct answer is a) Read-only graph (रीड-ओनली ग्राफ) [as per the official SSC answer key].

Computer Science & DBMS Theoretical Principles:

  • In standard computer science theory and relational database management systems (Silberschatz, Korth, and Sudarshan), deadlocks among a set of concurrent transactions are formally detected using a Wait-For Graph (WFG) (वेट-फॉर ग्राफ).
  • In a Wait-For Graph:
    • Vertices ($V$): Represent all active concurrent transactions in the system ($T_1, T_2, …, T_n$).
    • Directed Edges ($E$): A directed edge $T_i o T_j$ indicates that transaction $T_i$ is waiting for transaction $T_j$ to release a lock on a shared data item.
    • Deadlock Condition: A deadlock exists in the system if and only if the Wait-For Graph contains a directed cycle.
  • Exam Key Note: In the official answer key of the SSC IMD Scientific Assistant 2017 Exam, option a) रीड-ओनली ग्राफ was marked. Candidates should note that standard computer science literature uniformly designates the Wait-For Graph for deadlock detection.

विस्तृत व्याख्या:

सही उत्तर a) रीड-ओनली ग्राफ है (आधिकारिक SSC IMD 2017 उत्तर कुंजी के अनुसार)।

मानक कंप्यूटर विज्ञान एवं डेटाबेस सिद्धांत:

  • डेटाबेस प्रबंधन प्रणाली (DBMS) और ऑपरेटिंग सिस्टम में ट्रांजेक्शन्स के बीच गतिरोध (Deadlock) का पता लगाने के लिए मानक रूप से वेट-फॉर ग्राफ (Wait-For Graph – WFG) का उपयोग किया जाता है।
  • वेट-फॉर ग्राफ में:
    • शीर्ष (Vertices): सक्रिय ट्रांजेक्शनों ($T_1, T_2, …$) को दर्शाते हैं।
    • दिशानिर्देशित किनारे (Directed Edges): यदि ट्रांजेक्शन $T_1$, ट्रांजेक्शन $T_2$ द्वारा लॉक किए गए संसाधन की प्रतीक्षा कर रहा है, तो एक तीर $T_1 o T_2$ खींचा जाता है।
    • डेडलॉक की पहचान: यदि इस ग्राफ में कोई चक्र (Cycle) बनता है, तो वह डेडलॉक की उपस्थिति को सिद्ध करता है।
  • परीक्षा नोट: आयोग की आधिकारिक उत्तर कुंजी में विकल्प (a) रीड-ओनली ग्राफ दिया गया था, जबकि अकादमिक संदर्भ में ‘वेट-फॉर ग्राफ’ सही वैज्ञानिक उत्तर है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top