charlie's blog

Saturday, July 17, 2010

Process Priority utility

As discussed on StackOverflow and ServerFault, here is a utility that can query and set the CPU, memory, and IO priority of a Win32 process (runs on XP and higher).

To see the command line usage information, run the program without any arguments.



  • Note that for Windows 8 they have added SetProcessInformation() to allow setting these priorities in a more official manner. See MSDN for details.

    By Anonymous Anonymous, At April 25, 2013 at 3:01 PM  

  • can you please give some usage exmples:
    a.exe setProcessMeroryPriority high
    for example, or something else more appropriate, thanks

    By Blogger 28473, At July 21, 2014 at 4:53 PM  

  • If you run the process with no arguments you'll get a help screen. There are two usage modes: query and set. It operates on PIDs, so you'll need to figure that out via Task Manager or some other tool.

    Examples (123 is the PID of the process of interest):
    processPriority query 123
    processPriority set 123 normal

    By Blogger Charlie, At July 22, 2014 at 7:22 PM  

  • Hi,
    Thanks for providing this, this is great. I have tried it and it says that it has changed the memory and cpu priorities of my process.

    However, my process is still unable to utilize all the memory available to it.

    Anybody else have this issue?

    By Blogger Unknown, At April 7, 2015 at 11:06 AM  

Post a Comment

Subscribe to Post Comments [Atom]