You may have noticed that your CPU spikes to 100% of it’s power and then most of your programs and the computer becomes unresponsive or too slow to respond, that’s because the CPU doesn’t have any capacity left to process new programs or continue with existing programs.
In this guide, i will explain how you can automatically kill the process consuming 100% CPU. You can also use the two apps listed at the bottom if you do not want to play with the registry.
Follow the steps as listed here, the steps are for editing registry manually but if you want to do this automatically then jump to the bottom and use the apps.
Back up your registry settings
Since we will be modifying the registry it is important that you export the registry hive to a usb or an external drive or to your computer. To do this, follow these steps:
Hold Windows Key and Press R
Type regedit in the run dialog and click OK
Select “Computer” or the top folder (your computer name)
Click File -> Export and save the registry Settings.
This will be your back up of the registry settings, to import them back, click File -> Import and choose the file you backed up.
Step 2: Modify HKEY_CURRENT_USER\Control Panel\Desktop
Go to HKEY_CURRENT_USER\Control Panel\Desktop
Locate the value called “Auto End Task” and set it’s value to 1
This will kill any program hung immediately.
If you want to allow some time before killing the program
Locate the key called WaitToKillAppTimeout
Change the value to the one you want it, this will be in milliseconds.
If you want to undo the changes, simply import the registry back up back into registry editor.