永久更改任务管理器中程序运行优先级

阅读:255回复:1
2025-06-26 21:20
写私信
楼主#
参考资料:
A : https://zhuanlan.zhihu.com/p/626980105
B : https://www.bilibili.com/opus/821858416071802914
C : How to Permanently Set Priority Processes Using Registry Editor
D : Set CPU Process Priority for Applications in Windows 10
方法一:修改注册表以提高优先级
Win+R打开运行窗口,键入regedit回车打开注册表编辑器。
输入
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options
并打开。
在左侧树形图Image File Execution Options文件夹名称上右键新建,选择

以程序firefox.exe为例,将新建的,从命名为firefox.exe
firefox.exe下创建名为PerfOptions项,然后左键单击选择PerfOptions文件夹
PerfOptions下新建DWORD(32位),名为CpuPriorityClass。(就是在右侧大筐内右键)
双击CpuPriorityClass输入所需的CPU优先级的值:3
更多数值对应的优先级如下

1  空闲
2  正常
3  高
4  实时
5  低于正常

6  高于正常值
方法二:参考资料A或B使用VBS脚本自动提高优先级
方法三:参考资料C或D使用注册表命令提高优先级
2025-06-27 09:20
写私信
1楼#
没想到可以用注册表改
My Technical Blog: http://art-technical.blogspot.com/