Thursday, February 17, 2011

The fastest way XP shutdown or restart, get within a few seconds!

 Right at the beginning right click on the taskbar, the Task Manager open. And then there are options in the shutdown shutdown standby hibernate restart and so on. Method is very simple, you have to determine the point when the first press a certain keyboard the Ctrl key, do not let go at the same time left a certain point you need. For example I want to quickly shut down, hold down the Ctrl + left mouse button point to Shut Down option and then turned off within a few seconds.
I was not tried on other systems, so that only tried on XP. We can try in other systems, tell me what other systems can use this method.
Windows normal shutdown involves multiple components and multiple processes. It is this basic process.
1. user-initiated shutdown command, shutdown command initiated the program will notify the Windows subsystem CSRSS.EXE, CSRSS.EXE after receipt of the notification and Winlogon.EXE do a data exchange, followed by Winlogon.EXE notice CSRSS.EXE started the process of shutting down the system.
2.CSRSS.EXE Winlogon.EXE received notification will be followed by a top-level window, the user query process, so that the user process exit. If a user process in a default timeout 5000 ms (can modify the registry key HKEY_CURRENT_USERControl PanelDesktop HungAppTimeout set timeout), then there is no exit, Windows will display a dialog box used to ask the end of the task whether the user end this mission. By default, this dialog is always displayed and will not automatically close.
for the console application, the basic situation is similar, except that Windows uses HKEY_CURRENT_USERControl PanelDesktop WaitToKillAppTimeout to set the timeout.
3. then the turn of the system process terminated. system processes, including SMSS.EXE, Winlogon.EXE, Lsass.EXE other. Windows system process terminated when the process is not as end users as if you can not terminate within the specified time is prompt the user, but skip the process to the next operating system process terminated. Use the timeout and 2 using the same time.
3 steps above the Windows shutdown process is the most time-consuming section, most of the reasons for the slow shut down because it caused 3 steps. to complete the first 3 steps, enter the shutdown of the first four stages, which is the final stage.
4.Winlogon.EXE call a native API function NtShutdownSystem () to execute the command system, the back up work. At this stage, Windows will complete the final execution subsystem shut down operations, such as: device driver at this stage to complete the set number of drivers of special operations; also At this stage, the configuration management system will be changed back to the registry data written to disk inside. and so in addition to power management subsystem to complete withdrawal of all outside after the completion of the final power management operation: such as restart, shutdown.
I analyzed fast shutdown, it is written in Visual Basic. After analysis to arrive at a surprising conclusion: Fast Shutdown first use RtlAdjustPrivilege () to upgrade their privileges, and then directly call NtShutdownSystem () function to complete the shutdown process . That is the most time-consuming it is to skip the first three steps and go straight to Step 4, it can be quickly shut down.
quickly shut down because of opportunistic, skip a few steps.
mm No doubt, using the previous method is rapid and can easily lead off the questions
you say this is because the first three steps, one to exit the normal course of the process. Most of the software in the preparation of some of the time will settings stored in its own private memory space inside, only then when the software when they set off back to write a specific place, such as the registry or a configuration file.
actually shut down Windows itself has been very fast speed , shut down most of the problems have slowed the program installed on the user, because of some poorly designed application or driver issue, resulting in the delay on the shutdown. So I suggest that you do not often use the fast shutdown feature. To improve the speed of the best little off some large-scale installation of software, commonly used optimization software to optimize the `` best solution of course is not to be too harsh on the shutdown speed.
I suggest, if not quite critical, it is best not to use This method

No comments:

Post a Comment