What is the main purpose of a file lock?फाइल ताले का मुख्य उद्देश्य क्या है?
Answer and explanationउत्तर और व्याख्या
Correct answer:सही उत्तर: Prevent conflicting simultaneous writesएक साथ विरोधी लेखन को रोकना
The governing concept is controlled concurrent access. A file lock signals that a program is using or modifying a file, so another program cannot perform an incompatible write at the same time, or must wait until the lock is released. This helps prevent lost updates and inconsistent contents. A lock does not compress a file, delete it, or rename its extension. Therefore, option D is correct.इस प्रश्न का मुख्य सिद्धांत एक ही फाइल पर एक साथ होने वाली पहुँच को नियंत्रित करना है। फाइल ताला बताता है कि कोई कार्यक्रम फाइल का उपयोग या उसमें बदलाव कर रहा है। इससे दूसरा कार्यक्रम विरोधी लेखन नहीं कर पाता या ताला हटने तक प्रतीक्षा करता है। इस प्रकार बदलाव खोने और आँकड़ों की असंगति का जोखिम घटता है। ताला फाइल का आकार, स्थान या विस्तार नहीं बदलता। इसलिए D सही है।
Student feedback
Was this question useful?
👍 0 Helpful 👎 0 Not helpful
Yes 0% No 0%
0 responsesStudent Reviews
No published reviews yet.