क्या बंद करने के लिए shutdown.exe आवश्यक है?

विषयसूची:

क्या बंद करने के लिए shutdown.exe आवश्यक है?
क्या बंद करने के लिए shutdown.exe आवश्यक है?

वीडियो: क्या बंद करने के लिए shutdown.exe आवश्यक है?

वीडियो: क्या बंद करने के लिए shutdown.exe आवश्यक है?
वीडियो: The dangers of cryptojacking. How to protect yourself | Bitpanda Academy Lesson 20 - YouTube 2024, मई
Anonim
क्या Windows को बंद करते समय shutdown.exe आवश्यक है, या क्या यह विंडोज़ को बंद करने के लिए उपयोग किए जाने वाले हिस्से का हिस्सा है? क्या अन्य फाइलें और / या प्रक्रियाओं का उपयोग किया जाता है? आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।
क्या Windows को बंद करते समय shutdown.exe आवश्यक है, या क्या यह विंडोज़ को बंद करने के लिए उपयोग किए जाने वाले हिस्से का हिस्सा है? क्या अन्य फाइलें और / या प्रक्रियाओं का उपयोग किया जाता है? आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।

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

प्रश्न

सुपर यूज़र रीडर मुकुल कुमार जानना चाहते हैं कि विंडोज़ को बंद करने के लिए shutdown.exe आवश्यक है या नहीं:

Is the file C:WindowsSystem32shutdown.exe necessary to shut down or restart Windows?

विंडोज़ को बंद या पुनरारंभ करने के लिए shutdown.exe आवश्यक है?

उत्तर

सुपरयूसर योगदानकर्ता जेडीबीपी के पास हमारे लिए जवाब है:

Your question of course originates from your answer at StackExchange, in particular from kinokijuf’s comment upon the initial revision of your answer.

As kinokijuf said, Windows is not Unix. On Unices and Linux, shutdown is indeed involved in the full shut down process. It is the program that sends regular warning messages to logged-in users and that writes the /run/nologin file to prevent further logging-on a short while before the scheduled shut down time.

On Windows NT, this is not the case.

The “shut down” action on the “power button” on the Windows Explorer Start menu, the “shut down” menu option in Task Manager, REBOOT /S in TCC or Take Command, and other application programs that allow you to shut the system down all initiate shut down by directly calling one of two Win32 API calls: InitiateSystemShutdownEx() or ExitWindowsEx(). They do not do things indirectly by running the shut down program. That actually needs more code to do than just calling the Win32 API call. The shut down program, when one is doing a local shut down, calls those same Win32 API calls too.

It is actually winlogon, csrss, and smss that are the programs that shut down Windows NT. In particular, it is winlogon that does the main work of processing deferred shut down requests.

Further Reading

  • Jonathan de Boyne Pollard (2006). The Windows NT 6 shutdown process. Frequently Given Answers.
  • Shutdown. FreeBSD 9.2 manual pages. 2013-03-19.
  • Shutdown. Systemd manual pages. 2013. Freedesktop.org.
  • Shutdown. Upstart manual pages. 2009. Canonical Ltd.
  • InitiateSystemShutdownEx. MSDN. Microsoft corporation.
  • ExitWindowsEx. MSDN. Microsoft corporation.
  • REBOOT. Take Command / TCC Help. JP Software.

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

सिफारिश की: