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.

Enjoy!

3 Comments:

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

    By OpenID brucedawson, 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  

Post a Comment

Subscribe to Post Comments [Atom]