Table of Contents
What happens when you set an app to high priority?
What should you consider before setting an application to high priority?
Prerequisites for making an application high priority
Disable UAC
Grant Admin Rights to Applications
What are the different priority IDs?
How to Safely Make an App High Priority
Method 1: In PowerShell
Method 2: Use the wmic command in the command prompt
Method 3: Start high-priority applications
Method Four: Permanently Set App High Priority
Method 5: Use Task Manager to change the processor affinity of a high-priority application
Should you run your application with real-time priority?
Home Common Problem How to safely set high priority for apps in Windows 11?

How to safely set high priority for apps in Windows 11?

May 06, 2023 pm 06:28 PM
command prompt priority

Windows does a great job of allocating system resources to the processes and programs that need it most by assigning priorities to them. Most applications you install will run perfectly fine at the default "normal" priority level.

However, sometimes, you may need to run a program, such as a game, at a higher level than the default normal level to improve its performance. But this comes at a cost, and it's a deal worth pondering.

What happens when you set an app to high priority?

Windows has a total of six priority levels for running different processes and programs - low, below normal, normal, above normal, high and real-time.

Windows will rank and queue applications based on their priority. The higher the priority, the more time the application gets. Therefore, services and processes that are very important to Windows will run with high priority. Unless you have a good reason to change application priorities, it's best to let Windows decide which processes to prioritize when allocating resources.

Of course, if you want an application to run particularly slowly, you might consider setting its priority to the "High" category, which is much higher than normal. But be aware that doing so will take away some resources from where they are needed most, and can lead to some jarring results, such as freezing or lagging mouse and keyboard input.

What should you consider before setting an application to high priority?

Whether you should give an application high priority depends heavily on your processor and the task itself.

You can save yourself a lot of trouble if the application doesn't take up a lot of resources. However, if you plan on giving a video editor app or game some boost (which is what most people think of when it comes to meddling priorities), your system will take a noticeable hit. There's no point in having it in the first place if you have a high-priority application that's taking up all your system resources and can't even get your commands through.

Again, this will depend on the resources your system has to offer and the applications you want to run. However, if you want to experiment with what happens when you run a CPU-intensive application at high priority, then go ahead. Doing this won't damage your computer (although you'll have to reach for the power button to reboot) and the priority change will revert to default when the system reboots.

Prerequisites for making an application high priority

There are some things you should avoid before setting an application as high priority.

Disable UAC

User Account Control (UAC) protects your system from potentially harmful applications and settings changes by preventing you from making these changes. However, UAC can be troublesome if you know what you're doing. While it doesn't completely prevent you from making any changes, it does throw out confirmation prompts for every little thing. It's better to disable it and get rid of its annoying presence. That's it:

Press Start, type UAC, and then select Change User Account Control Settings.

如何在 Windows 11 中安全地设置应用程序的高优先级

Move the notification slider all the way down to "Never notify."

如何在 Windows 11 中安全地设置应用程序的高优先级

Then click "OK".

如何在 Windows 11 中安全地设置应用程序的高优先级

That’s it, UAC is no problem.

Grant Admin Rights to Applications

Another, probably more important change you need to make is to grant admin rights to the application you are trying to give high priority. Here's how to do it:

Open your application so that its process is running. Then right-click on the taskbar and select Task Manager.

如何在 Windows 11 中安全地设置应用程序的高优先级

Alternatively, press Ctrl Shift Esc to bring up the Task Manager. Then find your application's process in Task Manager. Right click on it and select Properties.

如何在 Windows 11 中安全地设置应用程序的高优先级

Click on the "Security " tab to switch to it.

如何在 Windows 11 中安全地设置应用程序的高优先级

Then click the Edit box.

如何在 Windows 11 中安全地设置应用程序的高优先级

Then give "Full Control" to your application by clicking the box under "Allow".

如何在 Windows 11 中安全地设置应用程序的高优先级

Then click "OK".

如何在 Windows 11 中安全地设置应用程序的高优先级

Click "OK " again.

如何在 Windows 11 中安全地设置应用程序的高优先级

What are the different priority IDs?

For some methods, such as using a command terminal like PowerShell and the command prompt given below, you have to enter the priority ID to change the priority of the application process. These priority IDs are as follows:

Low – 64

Below Normal – 16384

Normal – 32

Higher than normal – 32768

High – 128

Real-time- 256

Out of these six methods, you need priority ID number "128" to use the methods given below.

How to Safely Make an App High Priority

Now that you know what to keep in mind when setting an app to high priority, here are a few ways to do it:

Method 1: In PowerShell

Press Start, type powershell, right-click the result, and select "Run as administrator" .

如何在 Windows 11 中安全地设置应用程序的高优先级

Now type the following command:

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

Replace ProcessName with the full name of the application executable (and its extension) and PriorityLevelID with High priority ID number 128.

如何在 Windows 11 中安全地设置应用程序的高优先级

Then press Enter. That's it, you've used PowerShell to set your app as high priority.

Method 2: Use the wmic command in the command prompt

The command prompt command is slightly easier to handle. Here's how to use it to give an application high priority:

Press Start, type cmd, then right-click on the top matching result and select to manage Run as member".

如何在 Windows 11 中安全地设置应用程序的高优先级

Now type the following command:

wmic process where name="ProcessName" CALL setpriority ProrityLevelID

Make sure Replace ProcessName with the name of your application and PriorityLevelID with 128 (for high priority), as follows:

如何在 Windows 11 中安全地设置应用程序的高优先级

Then press Enter. The application's priority will be set to high.

Method 3: Start high-priority applications

So far, we have learned how to set the priority of applications that are already running. But you can also use Command Prompt to launch high-priority applications. That's it:

Open a command prompt with administrative rights and type the following command:

start ""/'Prioritylevel' "ApplicationPath"

Make sure to replace "Prioritylevel" with High (without quotes) and ApplicationPath with the full path to your application (with quotes).

如何在 Windows 11 中安全地设置应用程序的高优先级

That's it, you launched the application with high priority.

Method Four: Permanently Set App High Priority

By default, all changes you make to application priority will be reset after you restart your PC. To make the changes permanent, we'll add a Command Prompt command to the application's shortcut.

First, navigate to the application’s folder, right-click it and select Show more options.

如何在 Windows 11 中安全地设置应用程序的高优先级

Then select Send to , then select Desktop (create shortcut).

如何在 Windows 11 中安全地设置应用程序的高优先级

Now right click on the shortcut and select Properties.

如何在 Windows 11 中安全地设置应用程序的高优先级

Next to the Target field you should see the location of your application.

如何在 Windows 11 中安全地设置应用程序的高优先级

Move the cursor to the beginning of the location path and copy the following:

%windir%\system32\cmd.exe /c start "" /high

and paste it before the location of the application in the Target field. It should look like this:

如何在 Windows 11 中安全地设置应用程序的高优先级

#Then click OK.

如何在 Windows 11 中安全地设置应用程序的高优先级

Now every time you run this application using the shortcut, it will run with high priority.

如何在 Windows 11 中安全地设置应用程序的高优先级

Method 5: Use Task Manager to change the processor affinity of a high-priority application

Processor affinity is not the same as the application's priority. Without changing priorities, this option lets you decide how many CPU cores you want your application to be able to use. If you give a relatively heavy application high priority, limiting its CPU core usage can help lighten the load on your PC so that essential services can run smoothly.

This change can be made from Task Manager. Press Ctrl Shift Esc to open it. Then click on the hamburger icon in the upper left corner. 如何在 Windows 11 中安全地设置应用程序的高优先级

Then select Details.

如何在 Windows 11 中安全地设置应用程序的高优先级

Search for your application, right-click on it and select Set affinity.

如何在 Windows 11 中安全地设置应用程序的高优先级

#Here, limit the number of CPU cores available to the application by unchecking some processors.

如何在 Windows 11 中安全地设置应用程序的高优先级

Then click "OK" .

如何在 Windows 11 中安全地设置应用程序的高优先级

Should you run your application with real-time priority?

In almost all cases, the answer is no. Real-time priority is primarily reserved for applications that must "talk" directly to the hardware, such as the keyboard and mouse, or perform tasks that require minimal interruption. If you have an application running with real-time priority, you can almost always expect Windows registration to have issues with even the most basic commands.

The above is the detailed content of How to safely set high priority for apps in Windows 11?. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to run a JAR file on Windows 11 or 10 How to run a JAR file on Windows 11 or 10 May 12, 2023 pm 06:34 PM

Windows 11 is capable of running a large number of file types with or without external third-party applications. Not only does it allow you to perform numerous tasks from the comfort of your PC, but it also ensures that you can take advantage of your PC's raw capabilities. Today, we'll take a look at a complex file type—jar—and tell you how to open it on your Windows 11 or Windows 10 PC. What is a jar file? jar is an archive package format that may or may not contain an executable Java program. These archives can contain Java applications or source code, which can then be used to compile and run applications without having to write separate code for each application. You can use various methods

How to install CAB files on Windows 11 How to install CAB files on Windows 11 Apr 30, 2023 pm 10:10 PM

What is a CAB file? The extension of CAB file is .cab, which is the abbreviation of WindowsCabinet file. This is a compressed file typically used to compress software installation packages such as device drivers or update files. CAB files support lossless compression, which makes the format ideal for compressing files where it is critical that the files can be extracted accurately, such as drivers and other updates. How to Install a CAB File on Windows 11 Using Command Prompt There are multiple ways to install a CAB file on Windows 11. One of the methods is to use command prompt to extract and install the files. You can also use the newer Windows PowerShell

How to fix the problem in Valorant that requires a system restart before playing? How to fix the problem in Valorant that requires a system restart before playing? Apr 24, 2023 pm 11:58 PM

Cheating has always been a big problem in online FPS games, even if Valorant didn't exist. It can ruin the gaming experience and reduce player interest in the game. Valorant has tried to overcome this shortcoming since its early days with its own RiotVanguard protection system. You need to restart the system after installing the game once. This is completely normal and the Vanguard system will start automatically. However, if you restart your system and still see "Your game requires a system restart to play. Please restart your computer." Leave a message on the home page? Many users have encountered this problem, so don’t worry. Follow these fixes for a quick solution. Fix 1 – Don’t quit Pioneer after restarting your computer

How to fix application error 0xc0000906 on Windows PC How to fix application error 0xc0000906 on Windows PC Apr 18, 2023 pm 10:55 PM

Some users are encountering the error “Application Error 0xc0000906” while trying to run the application on their systems and they are unable to proceed. A single application or multiple applications on your system may encounter this error. This may be due to file corruption, caching issues, use of third-party antivirus software that may block software applications, etc. In this article, we have some solutions that can help users eliminate the error. Try executing the command to scan system files and disable antivirus software as described below. So let’s get started! Method 1: Run SFC and DISM Scan Step 1 – Open Command Prompt as Administrator. To do this, type cmd in the window search bar, then hold down the ctrl+shift keys and press enter

How to safely set high priority for apps in Windows 11? How to safely set high priority for apps in Windows 11? May 06, 2023 pm 06:28 PM

Windows does a great job of allocating system resources to the processes and programs that need it most by assigning priorities to them. Most applications you install will run perfectly fine at the default "normal" priority level. Sometimes, however, you may need to run a program, such as a game, at a higher level than the default normal level to improve its performance. But this comes at a cost, and it's a deal worth pondering. What happens when you set an app to high priority? Windows has a total of six priority levels for running different processes and programs - low, below normal, normal, above normal, high and real-time. Windows will rank and queue applications based on their priority. The higher the priority, the application

How to quickly resolve Windows activation error code 0xc004c020? How to quickly resolve Windows activation error code 0xc004c020? Apr 26, 2023 pm 03:19 PM

Many of our readers have reported the 0xC004C020 error when trying to connect their computers to their organization's servers. This error prevents activation of its Windows operating system. While errors can be frustrating, we'll guide you through error 0xC004C020 when trying to activate Windows on an organization-linked computer. What causes error 0xC004C020? If you are trying to activate Windows on an organization-linked computer and encounter error 0xC004C020, the possible causes may be as follows: Non-MAK keys – If a non-MAK key is used on an organization-linked computer, the organization’s policies will It is not allowed to be activated. Key access lost after formatting

How to fix srttrail.txt on Windows 11 How to fix srttrail.txt on Windows 11 Apr 18, 2023 am 10:43 AM

For Windows users, there is nothing more annoying than having to face a blue screen error, especially one that is accompanied by a system crash. srttrail.txt error is one of them. While not technically a BSOD, bugs in your auto-repair environment are still symptoms of deeper issues derailing Windows and require intervention. What is srttrail.txt error? The srttrail.txt text file mentioned in the message is just a log maintained by Windows for all instances when it fails to start properly, and it will continue to appear if Windows gets stuck on startup. This error message mainly occurs at system startup, but may also occur in Windo

3 Ways to Open System 32 Folder on Windows 11 or 10 3 Ways to Open System 32 Folder on Windows 11 or 10 May 04, 2023 pm 10:01 PM

What is the System32 folder? System32 is one of the main folders used by Windows. During Windows installation, all necessary files and folders that are critical for the proper functioning of Windows are copied to this folder. These include important system files, related executable files used by Windows utilities, dynamic link libraries (DLLs), and even some software files are copied to this folder. However, don't be fooled by the name System32. This is true for both 32-bit and 64-bit computers. In a 64-bit machine, the System32 folder hosts the 64-bit files, while the 32-bit files are located in