Solve the problem of slow wait time for windows Shutdown

Source: Internet
Author: User

Maybe Microsoft has set the Power button in the Start Menu of Windows Vista to sleep rather than shutdown in the traditional sense. Do you have to consider this? After all, the speed of sleep is guaranteed. -- Of course, this is also related to the mechanism of the Windows system itself: After Windows sends a shutdown command, it must first notify that services, applications, and processes have been added, the system can be shut down or restarted only after it is shut down one by one. In addition, operations to be performed before shutdown include cleaning page files, etc, physical write operations must be performed on each page in the page file. Theoretically, these processes cannot be omitted. Otherwise, the system stability will be affected.
Therefore, to speed up the shutdown of Windows Vista, the optimization that can be done to ensure system stability is not to skip the shutdown of similar services, applications, or processes, instead, we try to shorten the waiting time before closing. What should I do in Windows Vista?

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

Shorten the waiting time before closing the service

As we mentioned above, in the Shutdown Process of Windows Vista, the system first sends a shutdown warning to the loaded services, and then waits for the Shutdown signal given after these services are automatically closed, if you do not receive a close signal after the specified wait time, the corresponding service will be forcibly suspended and disabled in Windows.

To speed up the shutdown of Windows Vista, You can first shorten the wait time for the system to disable the service by default. Open the Registry Editor and find the following registry key:

HKEY_LOCAL_MACHINE \ System \ CurrentControlSet \ Control

On the right panel, you can see a registry entry named "WaitToKillServiceTimeout", double-click it to modify it, and set its value from the default 20000 (unit: milliseconds) adjust to a small value, such as 5000 or even 1000, so that if Windows Vista does not receive a service close signal within the set 5 S (5000) or 1 S (1000, A warning window is displayed to notify the user that the service cannot be stopped, and an option is provided to force or continue waiting for the user to choose.

Shorten the waiting time before closing the application and Process

Similar to the waiting time before closing the service, Windows Vista has a waiting time for the program or the process to close itself before forcibly closing the application and the process, only after the time limit is exceeded, windows system will force stop it.

Therefore, shortening the default application shutdown 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 and change its value from the default 20000 (unit: milliseconds) to a smaller 5000 or 1000, after Windows sends a shutdown command, if it waits for 5 seconds or 1 second, it still does not receive an application or a Shutdown signal, the corresponding warning signal will pop up and ask the user whether to forcibly stop the application.

There is also a registry entry named "HungAppTimeout" in the right panel, which corresponds to the waiting time when the system forces the user to close a process or application, if the object does not have a response. 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 preceding operation to modify the values of the two registry keys WaitToKillAppTimeout and HungAppTimeout.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.