Speed ​​up the shutdown speed of Vista

  

For a long time, the slow shutdown speed of Windows system has been criticized for a long time, users often have to wait a long time to shut down the system, this problem is not well solved in Windows Vista, —Perhaps Microsoft has preset the Power button in the Windows Vista Start menu to go to sleep instead of the traditional shutdown. Is there any consideration? 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 then shut down one by one before the system can be shut down or restarted. The operations to be performed before the 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, or the stability of the system will be affected.

Therefore, for users, 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 by Reduce the wait time before closing. So, what should I do in Windows Vista?

Like the previous Windows system, we can adjust the registry to adjust the corresponding options.

Shortening the waiting time before shutting down the service

We mentioned above that in the shutdown process of Windows Vista, the system first issues a shutdown warning to the loaded service, and then waits for these services to automatically close. After the shutdown signal is given, if the shutdown signal is not received after the set waiting time period, 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 default shutdown service wait time. Open the Registry Editor and locate the following registry key:

HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control

In the right panel, you can see a registry key named "WaitToKillServiceTimeout". Double-click to modify it, adjust its value from the default of 20000 (in milliseconds) to a smaller value, such as 5000 or even 1000, so if Windows Vista is set to 5 seconds (5000) or 1 second (1000 If no service shutdown signal is received, a warning window will pop up to inform the user that the service cannot be aborted, and the option to force abort service or continue to wait is waiting for the user to select.

Short wait time before closing applications and processes

Similar to waiting time before shutting down services, Windows Vista waits for the program or process itself before forcibly closing applications and processes. The time of the shutdown, only after the time limit is exceeded, the Windows system will force it to abort.

Therefore, shortening the default closing of the application or waiting time can also speed up the shutdown of Windows Vista.

The setting method is similar to the above, find the following branch in the registry:

HKEY_CURRENT_USER\\Control Panel\\Desktop

Double-click "WaitToKillAppTimeout" in the right panel to place it The value is changed from the default 20000 (the unit is also milliseconds) to a smaller 5000 or 1000, so that if Windows waits for 5 seconds or 1 second after issuing the shutdown command, it still does not receive an application or a shutdown signal. A corresponding warning signal pops up and asks if the user is forcibly aborted.

There is also a registry key named "HungAppTimeout" in the right panel, which corresponds to the waiting time of the system if the object does not respond after the user forcibly closes a process or application. . 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 "WaitToKillAppTimeout" and "HungAppTimeout" The value of the two registry keys.

Automatically aborting an application or process when shutting down or logging out

However, even if we set the value of "HungAppTimeout" to a small value, it does not mean that Windows Vista waits longer than the time limit. The program or process will be automatically aborted, and 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.

Find the following registry branch:

HKEY_CURRENT_USER\\Control Panel\\Desktop registry

You can see that there is a registry key named "AutoEndTasks" in the entry, which defaults to The value is "0", and changing it to "1" means that Windows Vista automatically terminates all processes without the user's confirmation.

Pressure 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 the consequences of losing important data of users. .

Taking "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 closed, if not retained. With sufficient buffer time, the data may be lost and cause unpredictable consequences. Therefore, it is generally not appropriate to set the duration to be too short. It is even more inappropriate to set it to "0".

Other: The above modification method is also applicable to Windows 2000, Windows XP and Windows 2003.

Copyright © Windows knowledge All Rights Reserved