martedì 2 aprile 2019

Permanently set and save process Priority

Usually we set the process priority using task manager, the problem is that once the process get restarted you loose the priority set.

You can play with the registry to solve this.

Let's say the process you want to start in LOW priority is "notepad.exe"

this is the registry location to look for (if you don't find the folder names, you need to create them) :


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe\PerfOptions]


And then you need to create these 2 DWORD keys:

"CpuPriorityClass"=dword:00000001
"IoPriority"=dword:00000000

where the values 1 and 0 come from this table:

CpuPriorityClass Value Priority 
1 Idle2 Normal3 High5 Below Normal6 Above Normal 
IoPriority Value Priority 
0 Very Low1 Low2 Normal

Nessun commento:

Posta un commento