कंप्यूटर को कैसे पता चलता है जब यह उचित रूप से बंद नहीं होता था?

विषयसूची:

कंप्यूटर को कैसे पता चलता है जब यह उचित रूप से बंद नहीं होता था?
कंप्यूटर को कैसे पता चलता है जब यह उचित रूप से बंद नहीं होता था?

वीडियो: कंप्यूटर को कैसे पता चलता है जब यह उचित रूप से बंद नहीं होता था?

वीडियो: कंप्यूटर को कैसे पता चलता है जब यह उचित रूप से बंद नहीं होता था?
वीडियो: L-7.1: File System in Operating System | Windows, Linux, Unix, Android etc. - YouTube 2024, जुलूस
Anonim
जब आप अनुचित शटडाउन / सिस्टम क्रैश के बाद अपना कंप्यूटर शुरू करते हैं, तो यह आम तौर पर सुरक्षित मोड में बूट करने और डिस्क जांच चलाने जैसे कार्यों का सुझाव देगा। कंप्यूटर को यह कैसे पता चला है कि दुर्घटनाग्रस्त हो गया है?
जब आप अनुचित शटडाउन / सिस्टम क्रैश के बाद अपना कंप्यूटर शुरू करते हैं, तो यह आम तौर पर सुरक्षित मोड में बूट करने और डिस्क जांच चलाने जैसे कार्यों का सुझाव देगा। कंप्यूटर को यह कैसे पता चला है कि दुर्घटनाग्रस्त हो गया है?

आज का प्रश्न और उत्तर सत्र सुपरयूसर की सौजन्य है - स्टैक एक्सचेंज का एक उपविभाग, क्यू एंड ए वेब साइट्स का एक समुदाय-ड्राइव समूह।

प्रश्न

सुपर यूज़र रीडर फ्रोजनकिंग जानना चाहता है कि उसके कंप्यूटर को क्रैश होने पर या अन्यथा अनुचित शट डाउन होने पर कैसे पता चलता है। वह लिखता है:

Actually, this question struck me because of power cuts in my house. When there is a power cut, there is a sudden loss of power from the computer.

How does the computer know that the shutdown was not properly done?

यह एक दिलचस्प सवाल है; स्पष्ट रूप से आधुनिक ऑपरेटिंग सिस्टम अच्छी तरह से जानते हैं कि कुछ गलत हो गया है, लेकिन किस तंत्र से वे जागरूक हैं?

जवाब

सुपरयूसर योगदानकर्ता डेविड श्वार्टज़ विभिन्न ऑपरेटिंग सिस्टमों में एक सामान्य उत्तर और अंतर्दृष्टि प्रदान करता है:

For non-Windows based PCs, the detection is usually done on a per-filesystem basis. When a filesystem is mounted in read/write mode, an entry is written to the filesystem marking it dirty. When the filesystem is unmounted, an entry is written marking it clean. On startup, the operating system checks if its core filesystems are marked dirty, and if so it knows there wasn’t a clean shutdown - at least of those filesystems.

एक और योगदानकर्ता, क्रिसफ़ विंडोज ऑपरेटिंग सिस्टम के लिए अधिक विशेष रूप से उत्तर देता है:

Windows also uses the Dirty Bit method to detect whether the PC was shut down properly:
Windows also uses the Dirty Bit method to detect whether the PC was shut down properly:

When powered off as normal, the bit is switched off. However, in case of power outage or improper (forced) shutdown, the bit will still be on the next time the PC is started.

This means that Windows can suggest remedial action – such as booting into Safe Mode.

In addition a Windows based PC will write an entry into event log detailing when and why (if known) it was shut down. It also writes an event when the PC starts up.

स्पष्टीकरण में जोड़ने के लिए कुछ है? टिप्पणियों में आवाज उठाओ। अन्य तकनीक-समझदार स्टैक एक्सचेंज उपयोगकर्ताओं से अधिक उत्तरों पढ़ना चाहते हैं? यहां पूर्ण चर्चा धागा देखें।

सिफारिश की: