Windows 10: Set CPU Process Priority for Applications in Windows 10  

    Set CPU Process Priority for Applications in Windows 10

    Set CPU Process Priority for Applications in Windows 10

    How to Set CPU Process Priority for Applications in Windows 10
    Published by Category: Performance & Maintenance
    21 May 2018
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 32,337

    Show Printable Version 


    How to Set CPU Process Priority for Applications in Windows 10


    Windows shares processor resources between all running processes based upon their priority level. If a process (application) has a higher priority level, it gets more processor resources for better performance compared to a process having lower priority.

    If you like, you can manually set priority for processes to run with a Realtime, High, Above normal, Normal, Below normal, or Low priority level in Windows based on your needs instead of the default priority. The changes you make to the priority level of a process (application) are only temporary and not set permanently. Once the application is closed or you restart the computer, Windows will forget the priority level you set for it.

    This tutorial will show you how to change the process priority of applications for processor resources in Windows 10.

    It is not recommended to set processes to have a realtime priority level since it could lower the performance of your system by causing all other lower priority processes to not have the resources they need.

    When you set a 100% CPU program to real-time priority, you get what you asked for The Old New Thing


     CONTENTS:

    • Option One: To Change Priority of Running Process in Task Manager
    • Option Two: To Change Priority of Running Process in PowerShell
    • Option Three: To Change Priority of Running Process in Command Prompt
    • Option Four: To Start Application with a Set Priority in Command Prompt





    Set CPU Process Priority for Applications in Windows 10 OPTION ONE Set CPU Process Priority for Applications in Windows 10
    To Change Priority of Running Process in Task Manager

    1. Open Task Manager in more details view.

    2. Click/tap on the Details tab, right click or press and hold on the process name (ex: "mspaint.exe"), click/tap on Set priority, and click/tap on the Realtime, High, Above normal, Normal, Below normal, or Low priority level you want to set for this process. (see screenshot below)

    Name:  Set_priority_Task_Manager-1.jpg
Views: 31713
Size:  77.4 KB

    3. Click/tap on Change priority to confirm. (see screenshot below)

    Name:  Set_priority_Task_Manager-2.png
Views: 30845
Size:  11.4 KB

    4. When finished, you can close Task Manager if you like.





    Set CPU Process Priority for Applications in Windows 10 OPTION TWO Set CPU Process Priority for Applications in Windows 10
    To Change Priority of Running Process in PowerShell

    1. Open PowerShell.

    2. Type the command below into PowerShell, and press Enter. (see screenshot below)

    Get-WmiObject Win32_process -filter 'name = "ProcessName"' | foreach-object { $_.SetPriority(PriorityLevelID) }

    Substitute ProcessName in the command above with the actual name of the running process (ex: "mspaint.exe") you want to change the priority level of.Substitute PriorityLevelID in the command above with the number (ex: "32768") in the table below for the priority level (ex: "Above normal") you want to set for this process.

    For example: Get-WmiObject Win32_process -filter 'name = "mspaint.exe"' | foreach-object { $_.SetPriority(32768) }

    Priority Level ID Priority Level Name
    256 Realtime
    128 High
    32768 Above normal
    32 Normal
    16384 Below normal
    64 Low

    3. When finished, you can close PowerShell if you like.

    Name:  Set_priority_PowerShell.jpg
Views: 30847
Size:  32.6 KB





    Set CPU Process Priority for Applications in Windows 10 OPTION THREE Set CPU Process Priority for Applications in Windows 10
    To Change Priority of Running Process in Command Prompt

    1. Open a command prompt.

    2. Type the command below you want to use into the command prompt, and press Enter. (see screenshots below)

    wmic process where name="ProcessName" CALL setpriority "PriorityLevelName"

    OR

    wmic process where name="ProcessName" CALL setpriority PriorityLevelID

    Substitute ProcessName in the command above with the actual name of the running process (ex: "mspaint.exe") you want to change the priority level of.

    Substitute PriorityLevelName in the command above with the priority level name (ex: "Above normal") in the table below you want to set for this process.

    Substitute PriorityLevelID in the command above with the number (ex: "32768") in the table below for the priority level (ex: "Above normal") you want to set for this process.

    For example:

    wmic process where name="mspaint.exe" CALL setpriority "Above normal"

    OR

    wmic process where name="mspaint.exe" CALL setpriority 32768

    Priority Level ID Priority Level Name
    256 Realtime
    128 High
    32768 Above normal
    32 Normal
    16384 Below normal
    64 Low

    3. When finished, you can close the command prompt if you like.

    Name:  Set_priority_name_command.jpg
Views: 30915
Size:  39.9 KB Name:  Set_priority_ID_command.jpg
Views: 30827
Size:  41.8 KB





    Set CPU Process Priority for Applications in Windows 10 OPTION FOUR Set CPU Process Priority for Applications in Windows 10
    To Start Application with a Set Priority in Command Prompt

    1. Open a command prompt.

    2. Type the command below into the command prompt, and press Enter. (see screenshot below)

    start "" /PriorityLevelName "Full path of application file"

    If you like, you can use the command below to create a shortcut that will always open the application with the set priority.

    cmd /c start "" /PriorityLevelName "Full path of application file"

    Substitute PriorityLevelName in the command above with the priority level name (ex: "AboveNormal") in the table below you want to set for this process.

    Substitute Full path of application file in the command above with the actual full path of the application file (ex: "C:\Windows\System32\mspaint.exe") you want to start.

    For example: start "" /AboveNormal "C:\Windows\System32\mspaint.exe"

    Priority Level Name
    Realtime
    High
    AboveNormal
    Normal
    BelowNormal
    Low

    3. When finished, you can close the command prompt if you like.

    Name:  Start_process_with_priority_command.png
Views: 30835
Size:  11.0 KB


    That's it,
    Shawn


  1. Polo6RGTI's Avatar
    Posts : 358
    Windows 10 Pro WS x64 17134.319
       23 Jul 2017 #1

    A couple more options to launch Paint with Above Normal priority

    Example 1:
    Create a new shortcut or edit an existing shortcut then paste the following string in the target box:

    C:\Windows\System32\cmd.exe /c start "" /AboveNormal "C:\Windows\System32\mspaint.exe"

    Click on "Change Icon..." then navigate to "C:\Windows\System32\mspaint.exe" to change the shortcut icon.

    Name:  Screenshot (16).png
Views: 30803
Size:  19.0 KB

    Example 2:
    Add paint to the context menu
    Code:
    Windows Registry Editor Version 5.00
    
    ;Add Paint to context menu, Launch Paint with Above Normal Priority
    [HKEY_CLASSES_ROOT\Directory\background\Shell\Paint]
    @="Paint"
    "icon"="C:\\Windows\\system32\\mspaint.exe"
    "Position"=-
    
    [HKEY_CLASSES_ROOT\Directory\background\Shell\Paint\command]
    @="cmd.exe /c start /AboveNormal C:\\Windows\\System32\\mspaint.exe"

    Remove Paint from the context menu
    Code:
    Windows Registry Editor Version 5.00
    
    ;Remove Paint from context menu
    [-HKEY_CLASSES_ROOT\Directory\background\Shell\Paint]
    
    [-HKEY_CLASSES_ROOT\Directory\background\Shell\Paint\command]
      My ComputersSystem Spec


  2. Posts : 1,337
    W10 pro x64 and W8.1 x86
       20 May 2018 #2

    Very interesting... (and a question right at the end :))

    I have been having ongoing issues with a certain program (LTspice XVII) that often crashes at a particular point in its operation. This point is when the screen has to 'split' into two with one window becoming a graphical display. The author of the software is aware of the issues and has tried to address whatever the cause may be via normal updates... however...

    Myself and others have still been having issues and I wondered whether it could be a resource or timing issue.

    I stumbled across this tutorial after generally researching possible causes and tried Shawns methods of opening the program at higher than normal priority. No crashes.

    Spurred on by this I used the method suggested by Polo6RGTI to alter the target of the shortcut such that it opens LTspice in 'High' priority. All good so far (thanks for the idea).

    One final thing I am left with, and I'm not sure if there is a fix, is this. Opening LTspice from the modified shortcut works well, and from there I can directly open the last ten used files from within the program or as with any program I can browse for a file to open.

    The minor 'annoyance' is that clicking a file directly (which opens LTspice) is of course opening it in 'normal' priority mode. I have to open LT first to get it in High Priority, then browse for a file.

    Is there any way to get it so that clicking a file directly opens LT in 'High Priority' mode.
      My ComputerSystem Spec

  3. Brink's Avatar
    Posts : 32,337
    64-bit Windows 10 Pro build 18242
    Thread Starter
       20 May 2018 #3

    Hello Mooly, :)

    You could create a shortcut using the command from Option Four to do so.

    If you like, you could also use the added context menu below to run programs with a selected priority level.

    Add 'Run with priority' Context Menu in Windows 10 | Windows 10 Tutorials
      My ComputersSystem Spec


  4. Posts : 1,337
    W10 pro x64 and W8.1 x86
       20 May 2018 #4

    Thanks Shawn, I've just tried it and I'm not sure if that's going to do what I want. It doesn't seem to have done at any rate.

    Putting this into a command prompt opens the program in high priority:
    start "" /High "C:\Program Files\LTC\LTspiceXVII\XVIIx64.exe"

    but what I really want (if possible) is to be able to click random files (applicable to the program of course) and get it to open in High Priority.

    The newly created shortcut following Polo's suggestion opens the program itself correctly, although unfortunately not correctly from clicking random files. If I browse for the file from within LT then its all good.

    I hope these images make sense :) It would just be the icing on the cake to be able to do this.

    Click image for larger version. 

Name:	LT1.jpg 
Views:	68 
Size:	386.4 KB 
ID:	189564

    Click image for larger version. 

Name:	LT2.jpg 
Views:	85 
Size:	489.0 KB 
ID:	189565

    Click image for larger version. 

Name:	LT3.JPG 
Views:	79 
Size:	285.6 KB 
ID:	189566

    Click image for larger version. 

Name:	LT4.jpg 
Views:	75 
Size:	457.4 KB 
ID:	189567
      My ComputerSystem Spec

  5. Brink's Avatar
    Posts : 32,337
    64-bit Windows 10 Pro build 18242
    Thread Starter
       20 May 2018 #5

    Would the context menu I posted work for that for you?

    Add 'Run with priority' Context Menu in Windows 10 | Windows 10 Tutorials
      My ComputersSystem Spec


  6. Posts : 1,337
    W10 pro x64 and W8.1 x86
       20 May 2018 #6

    It doesn't seem to

    The context menu is added OK and all the options are there for .exe applications but none of the individual .asc files show that option.

    What I'm after is a bit like saying I want to click a notepad (a .txt file) to open it, and for it to open notepad in High Priority and not the default. It may well not be doable... but there's never any harm in trying
      My ComputerSystem Spec

  7. Brink's Avatar
    Posts : 32,337
    64-bit Windows 10 Pro build 18242
    Thread Starter
       20 May 2018 #7

    I'm not sure for .asc files. Setting CPU priority is only for application type files.
      My ComputersSystem Spec


  8. Posts : 1,337
    W10 pro x64 and W8.1 x86
       21 May 2018 #8

    No worries :) I can live with it as it stands now (and at least the new shortcut opens it in High mode) and hopefully the author of the program might be able to get a better handle on what's happening and come up with a more permanent fix.
      My ComputerSystem Spec


 

Tutorial Categories

Set CPU Process Priority for Applications in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
How to Change Wireless Network Connection Priority Order in Windows 10 Windows will usually automatically connect to networks in this priority order: Ethernet Wi‑Fi (wireless) Mobile broadband (cellular) When you connect to a new...
Is there any way to change task priority in W10, as it was in previous versions (Task Manager|Set Priority)? Dropbox likes to spend the first 10 minutes after waking up my computer taking 60-90% of processor cycles, and I've also noticed other...
I want to change the priority of the network connection in Windows 10 so that they follow a specific order. When I have multiple network connections, I want to change the priority so the network I prefer will be the first one to use. I tried to...
How to Change Priority of App Notifications in Action Center in Windows 10 The Action Center in Windows 10 collects and shows notifications and alerts from traditional Windows applications and system notifications, alongside those generated...
I have 2 computers both running Windows 10, one of which is brand new. When I setup the new computer, I signed in using Microsoft account, expecting the new computer to sync the settings from the old one. But instead, the new computer's default...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 21:02.
Find Us