When I run my program without a Task Scheduler, it has a memory priority of 5, like all other programs running on my system (Windows 7).
But when working in Task Scheduler, it has a memory priority of 4, and this affects performance.
Attention! The process priority is Normal (processor priority 8), so this is not a problem! The problem with memory is the problem!
Process Explorer Screenshot:

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