2251
GB
What is the OCC Read-Validate-Write cycle and what conflict check is done in the validation phase?
IN
ओसीसी रीड-वैलिडेट-राइट चक्र क्या है और सत्यापन चरण में कौन सी विरोध जांच की जाती है?
A
Reading validating syntax then writing
मान्य सिंटैक्स को पढ़ना, फिर लिखना
B
Three phases: Read (execute locally no locks reads from database writes to private workspace); Validate (check if any committed transaction since start wrote to data this transaction read); Write (apply local workspace to database if validation passed)
तीन चरण: पढ़ें (स्थानीय रूप से निष्पादित करें, डेटाबेस से कोई लॉक नहीं पढ़ता है, निजी कार्यक्षेत्र में लिखता है); मान्य करें (जांचें कि क्या प्रारंभ से लेकर अब तक कोई प्रतिबद्ध लेन-देन इस लेन-देन के पढ़े गए डेटा में लिखा गया है); लिखें (यदि सत्यापन पारित हो गया है तो डेटाबेस में स्थानीय कार्यस्थान लागू करें)
C
Reading with S-locks validating with X-locks writing without locks
एस-लॉक के साथ पढ़ना, एक्स-लॉक के साथ सत्यापन, बिना लॉक के लिखना
D
Reading committed data validating constraints writing with locks
प्रतिबद्ध डेटा को पढ़ना, अवरोधों को मान्य करना, ताले के साथ लिखना
✅ Correct Answer:
💡 Explanation / व्याख्या
Explanation (English)
OCC Validation: for each committed transaction Tj that committed during Ti execution, check: (1) Ti finished its read phase before Tj started (safe), OR (2) The write set of Tj and read set of Ti are disjoint (safe). If neither holds for any Tj: conflict, abort Ti.
व्याख्या (हिन्दी)
OCC Validation: for each committed transaction Tj that committed during Ti execution, check: (1) Ti finished its read phase before Tj started (safe), OR (2) The write set of Tj and read set of Ti are disjoint (safe). यदि इनमें से कोई भी Tj के लिए मान्य नहीं है: संघर्ष, Ti को निरस्त करें।