How to solve the problem of long waiting time for computer shutdown

  
For a long time, computer shutdown has been criticized for a long time. Users often have to wait a long time to shut down the system. This problem has not been solved well in Windows Vista. —— Maybe Microsoft will start the Windows Vista menu. The Power button is preset to go to sleep instead of the traditional shutdown. There are also considerations in this regard. After all, the speed of sleep is guaranteed. —— Of course, this is also related to the mechanism of the Windows system itself: after the shutdown command is issued, Windows needs to first notify that the service, application, and process have been loaded, and the system can be shut down or restarted after being shut down one by one. In addition, the operations to be performed before shutdown include, for example, cleaning the page file, etc., and performing physical write operations on each page in the page file. In theory, these processes cannot be omitted, otherwise the system will be affected. Sex. Therefore, for the user, to speed up the shutdown speed of Windows Vista, the optimization that can be done under the premise of ensuring system stability is not to skip the shutdown of similar services, applications or processes, but to minimize the waiting time before shutdown. . So, in Windows Vista, what should I do? Like the previous Windows system, we can adjust the registry to adjust the corresponding options. Shorten the waiting time before shutting down the service. As mentioned above, in the shutdown process of Windows Vista, the system first issues a shutdown warning to the loaded service, and then waits for the shutdown signal given after these services are automatically closed, if it is set. After the waiting time period has not received the shutdown signal, the Windows system will forcibly close the corresponding service implementation. To speed up the shutdown of Windows Vista, you can first achieve this by shortening the system's default shutdown service wait time. Open the registry editor and find the following registry key: HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control In the right panel, you can see a registry key named "WaitToKillServic++eTimeout", double click to modify it, put it The value is adjusted from the default of 20000 (in milliseconds) to a smaller value, such as 5000 or even 1000, so that if Windows Vista does not receive a service shutdown signal within 5 seconds (5000) or 1 second (1000) of the setting The system will pop up a warning window to inform the user that the service can not be aborted, and give the option to force the abort service or continue to wait for the user to choose. Shortening the wait time before closing an application and a process is similar to waiting before shutting down a service. Windows Vista also has a period of time waiting for the program or process to shut itself down before forcibly closing the application and the process. Only after this time limit, the Windows system Will it be forcibly suspended. Therefore, shortening the default closing application or waiting time can also speed up the shutdown of Windows Vista. The setting method is similar to the above. Locate the following branch in the registry: HKEY_CURRENT_USER\\Control Panel\\Desktop Double-click "WaitToKillAppTimeout" in the right panel to change its value from the default 20000 (the unit is also milliseconds) to the smaller 5000. Or 1000, in this way, if Windows does not receive an application or a shutdown signal after waiting for 5 seconds or 1 second after issuing the shutdown command, a corresponding warning signal will pop up and ask the user whether to forcibly abort. There is also a registry key named “HungAppTimeout” in the right panel that corresponds to the wait time after the system forcibly shuts down a process or application if the object does not respond. The default value is “5000”, which can be changed to “1000”. Then, in the following registry branch: HKEY_USERS\\.DEFAULT\\Control Panel\\Desktop\\ Repeat the above operation, ie modify the value of the two registry entries "WaitToKillAppTimeout" and "HungAppTimeout". Automatically abort an application or process when shutting down or logging out. Even if we set the value of "HungAppTimeout" to a small value, it does not mean that Windows Vista will automatically suspend the program or process after waiting for it to exceed the time limit. A dialog box will pop up to let the user confirm whether to abort. If you feel that this method is too cumbersome, you can modify the registry key to let Windows Vista automatically interrupt the process after the waiting time limit. Locate the following registry branch: HKEY_CURRENT_USER\\Control Panel\\Desktop registry can see that there is a registry key named "AutoEndTasks" in the entry, the default value is "“0”, modify it to "1"" Let Windows Vista automatically terminate all processes without the user's confirmation. In order to ensure the stability of the system, although the above method can significantly speed up the shutdown speed of Windows Vista under certain circumstances. However, it should be emphasized that, regardless of "WaitToKillServiceTimeout", "WaitToKillAppTimeout", or "HungAppTimeout", it is a very important and indispensable parameter for Windows systems. Improper settings will affect the stability of the system or loss of users. The consequences of the data. Take “WaitToKillServiceTimeout” as an example. The purpose of the Windows system using WaitToKillServiceTimeout is to give the corresponding service a buffer time, so that the running services can write the data in the cache back before the system is shut down. If not enough buffer time is reserved, Data can be lost and unpredictable consequences, so it's generally not appropriate to set its duration too short, as it is set to “0” In fact, these features are already available in Vista Optimizer (the latest version of the download), you can click on the above system optimization, then click on the left side of the boot /shutdown, see if it is, and there are more More options 喔.
Copyright © Windows knowledge All Rights Reserved