开发者

How to change the memory priority of a scheduled task?

When starting my program without Task Scheduler, it has memory priority of 5 like all other programs running in my system (Windows 7).

But when running under Task Scheduler, it has memory priority of 4, and it impact performance.

Note! Process priority is Normal (CPU Prio开发者_如何学Crity 8) so this is not the problem! Only memory priority is the problem!

Process Explorer screenshot:

How to change the memory priority of a scheduled task?

How to change the memory priority of a scheduled task to 5? Win32 API is an acceptable solution.


Apparently there's no way to tell Task Scheduler to not adjust the memory priority. But it can be done programmatically. See this thread over at Serverfault: https://serverfault.com/questions/151824/process-runs-slower-as-a-scheduled-task-than-it-does-interactively


this is an old question, but maybe I can help someone. To change the priority of a scheduled task export the task (to an xml file), edit that file, search for the priority line and change the number. Values go from 0 (real-time priority) to 10 (idle priority). After changing the value, import the task and test if now it meets your requirements of CPU, Memory and I/O priority.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜