Tech News Today
  • News
  • How To
  • Buyer’s Guide
  • Hardware
    • PC Builds
    • Computer Cases
    • Motherboards
    • Peripherals
    • RAM
  • Gaming
  • Software
  • More
    • Mobile
    • Gadgets
    • Laptops
    • Reviews
Facebook Twitter Instagram
Tech News Today
  • News
  • How To
  • Buyer’s Guide
  • Hardware
    • PC Builds
    • Computer Cases
    • Motherboards
    • Peripherals
    • RAM
  • Gaming
  • Software
  • More
    • Mobile
    • Gadgets
    • Laptops
    • Reviews
Tech News Today
Home»Windows»How To Set CPU Priority To Prefer Foreground Apps In Windows

How To Set CPU Priority To Prefer Foreground Apps In Windows

AbhishekBy AbhishekMay 3, 2022
how-to-set-cpu-priority-to-prefer-foreground-apps

Your operating system runs several processes in the background along with the foreground apps. However, it does not allocate equal resources like CPU time and memory to all processes.

By default, Windows gives slight priority to foreground activities. But, you may have unknowingly changed your setting to provide equal importance. Or you simply want to prioritize foreground apps even more.

There are a few ways to set CPU priority in Windows. They offer different options, so read carefully and pick one according to your need.

Table of Contents

  • How to Set CPU Priority to Prefer Foreground Apps From System Properties
  • How to Set CPU Priority to Prefer Foreground Apps Through Registry Editor
  • How to Set Priority of Specific Process Using Task Manager
  • How to Set CPU Priority to Prefer Foreground Apps With Command Prompt
  • Related Questions
    • Does Setting CPU Priority to Prefer Foreground Apps Improve Performance?
    • Can’t change priority in Task Manager.
    • What is the Best Win32PrioritySeparation Value to Prefer Foreground Apps?

How to Set CPU Priority to Prefer Foreground Apps From System Properties

Using System Properties is the quickest way to set CPU priority to prioritize foreground apps. Here’s how you can do so:

  1. Open the Run command (Win + R) and enter systempropertiesadvanced. It will direct you to the Advanced tab of System Properties.
  2. Under Performance, click on Settings.
  3. Go to the Advanced tab.
  4. Check Programs and hit Ok.
    performance-system-properties

However, this method still does not bring foreground apps to the highest priority. You’ll need to execute the next method for this purpose.

How to Set CPU Priority to Prefer Foreground Apps Through Registry Editor

You can also change the CPU priority using the Registry Editor. This method offers more options compared to the above.

You need to alter the DWORD value Win32PrioritySeparation to define the relative priority of foreground and background apps. To do so,

  1. Enter regedit on the Run command.
  2. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl
  3. Double-click on Win32PrioritySeparation.
  4. Set its value to 26 on Hexadecimal base or 38 on Decimal.
    win32-priorityseparation

How to Set Priority of Specific Process Using Task Manager

This method is more tiresome than previous ones if you want to set priority for multiple apps. However, you can prioritize individual apps instead of all the foreground or background apps at once. Follow the steps below to change priority using the Task Manager:

  1. Press Ctrl + Shift + Esc to load the Task Manager.
  2. Go to the Details tab and look for the apps.
  3. Right-click on the process and hover over Set Priority.
  4. Choose High or Above Normal.
    task-manager-set-priority

Do this for all the processes you want and close the Task Manager.

How to Set CPU Priority to Prefer Foreground Apps With Command Prompt

You can also use the Command-line interface to set the priority for individual processes. However, since you need to know the name of the process, using the GUI might be more convenient. 

Regardless, if you want to use the CLI,

  1. Launch the Run dialog box and enter cmd to open the Command Prompt.
  2. Type wmic process where name=”Process Name” call setpriority “Priority Level” and press Enter.
    wmic-set-priority

Make sure to replace “Process Name” with the full name of the process along with its extension and “Priority Level” to the priority you want, in this case, “High” or “AboveNormal” without removing the quote symbols.

As an example, wmic process where name=”vlc.exe” call setpriority “High”

Related Questions

Does Setting CPU Priority to Prefer Foreground Apps Improve Performance?

Enabling high priority for foreground apps will improve performance in many cases. But some apps are known to use several background apps. Apps that use the internet or simulators are some examples. In such cases, preferring foreground apps will instead affect app performance.

Nevertheless, if you are running apps as a standalone process, feel free to increase their priority.

Can’t change priority in Task Manager.

You should be able to change app priority in Task Manager if you’re logged in as an administrator. If you still can’t, you likely don’t have full control of the process. To fix this,

  1. Right-click on the process in Task Manager and select Properties.
  2. Go to the Security tab and click Edit.
  3. Make sure to tick Full control for Administrators and click Ok.

Now you should be able to set priority.

What is the Best Win32PrioritySeparation Value to Prefer Foreground Apps?

The range for the Win32PrioritySeparation DWORD value is 0x0 – 0x3F (111111 in binary). Among the six binary digits (bits),

  • Starting from left, the first two bits determine the interval for priority, such as: 
    01 – Longer intervals
    10 – Shorter intervals
  • The middle two bits determine the length of intervals. For instance,
    01 – Variable length of the interval
    10 – Fixed length of the interval
  • The final two bits determine the ratio of foreground to background processes if middle bits specify variable interval length.
    00 – 1:1 ratio (same as fixed-length interval)
    01 – 2:1 ratio
    10 or 11 – 3:1 ratio

So to put the highest priority for foreground apps, the value must be 100110 in binary or 0x26 (38).

how-to
Abhishek

I'm an avid writer, tech-enthusiast and casual gamer. I enjoy reading and listening to music too.

Related Posts

Windows-Memory-Diagnostic-troubleshooting-app

5 Ways To Open Windows Memory Diagnostic Troubleshooting App

May 15, 2022
Open-Settings-App

11 Ways To Open Settings App In Windows

May 15, 2022
bad_pool_caller

How To Fix BAD_POOL_CALLER Error On Windows

May 12, 2022
connected user experiences and telemetry

Connected User Experiences And Telemetry – Should I Disable It?

May 12, 2022
Windows Screensaver Not Working

Windows Screensaver Not Working? How To Fix It

May 11, 2022
snip-and-sketch-shortcut

How to Use Snip & Sketch to Take Screenshots in Windows

May 10, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
games like resident evil

12 Best Survival Horror Games Like Resident Evil

May 15, 2022
games-like-valheim

Best 13 Games Like Valheim Across Various Genres

May 15, 2022
Arrow in Photoshop

How to Make an Arrow in Photoshop

May 15, 2022
You may also like
connect xbox controller to mac

How to Connect Xbox Controller to Mac

May 15, 2022
how to control lights with alexa

How To Control Lights With Alexa

May 15, 2022
why is my volume so low

Why Is My Volume So Low In Android And iPhone

May 15, 2022
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

October 25, 2021
Facebook Twitter Pinterest
  • Home
  • About Us
  • Privacy Policy
  • Affiliate Disclosure
© 2022 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.