How to change priorities. About interesting things from the IT world, instructions and reviews

If you put a high priority on the application, then it will start working faster. I personally have a script that sets the priority to High for all processes. And you know - everything actually works faster, pages open faster. True, Chrome also loads the processor even more.

So, I will now show you how to manually set a high priority to a program / process in Windows 10. For example, I will take .. ICQ. ICE is a program for communication, a messenger, which was very popular before. But now it was replaced by social networks, Viber, well, that's all .. and although it was very popular, and convenient, everyone had their own number, and you could write to each other. Yes, even today it is possible - only few people use it now. So, okay, start the manager - right-click on the taskbar and select this item:


Then we are looking for the program that we want to set a high priority, I have it ICQ, it is called here as ICQ (32 bits):


Right-click on it and select Details:


After that, the Details tab is automatically activated, where the program process will be highlighted, in my case it is icq.exe. Right-click on it and set the priority:


We confirm:


Everything, then the priority of the program process will be high. I do not recommend setting real time - there may be wild brakes, if the program itself hangs, and there will still be a priority of real time on it .. then the whole computer may hang tightly. To return the priority back, then do the opposite, well, I think it's clear.

Should you prioritize the game? If at the same time you close all programs, as much as possible, then yes, it's worth it. And the effect will be better if you also turn off the Internet and antivirus. The more you disable, the better high priority will work. But don't give the game a real priority unless you have a top processor. If the top-end, you can try, but again, everything may freeze. The point is that by putting the real priority on .. you are specifying that the game needs to be processed first. In terms of processor instructions. Well, okay, but what to do with the rest of the processes, among which there are important and systemic ones? So they may not receive enough resources .. and as a result, the computer may freeze once, twice, and the third time it will not hang loose ..

We use a dictionary. If the programs are not closed, they use the resource of our computer. You can see what is happening in reality in a special Windows program. But do not just look, but manage the allocation of resources in order to improve performance. Let's take a look at how to increase the priority in the Windows Task Manager.

Working with many programs, the computer switches from one to another in a certain order. Those that he considers most important are done first. The degree of importance is called the priority. As a rule, it is controlled by the code of the program itself. But the user can change the base parameter to some other one, thereby making faster what is important to him at the moment.

Priority types

The degree of importance has the following gradations:

  • real-time priority means that all computer resources are given to the selected process, even those resources that were intended for system processes, think before increasing it to such an extent.
  • tall;
  • above the average;
  • usual;
  • below the average;
  • low.

Changing order values

Let's see how to set the priority in the Task Manager:

IMPORTANT. Remember that high values \u200b\u200bfor any one program can significantly reduce the overall performance of the machine. Increase gradually, and experimentally find the degree that will make your work comfortable.

When does it apply? Mainly for solving temporary tasks. For example, you are watching a movie and at the same time downloading some data from the Internet, and the video is intermittently interrupted. By increasing the importance of the player, you will solve this problem. It is also often used to improve browser performance when browsing the web.

As already mentioned, the change is only valid for a certain point in time, while the program is running. When it restarts, the baseline will be back. Let's consider the most convenient way to change the priority of Windows tasks.

Other ways to work with performance

Agree, it is very inconvenient to experiment with the settings every time. There are special programs that simplify the procedure. For example, Process Explorer and Mz CPU Accelerator. We will not dwell on them in detail, we will only note the essence of their work.

Mz CPU Accelerator allows you to automatically increase the values \u200b\u200bfor the active window program, doing it very efficiently. In addition, it allows you to manage the allocation of processor resources, for example, allocate one or two cores to the program instead of all. In general, the program allows you to increase the speed of applications.

Process Explorer allows you to get detailed information about all the processes occurring on the computer and to set more advanced settings than the standard windows tool.

Thus, knowing how to change the priority level in the Task Manager, you can increase the speed of your computer, avoid errors and freezes. If you have tips on how to change this setting in a particular situation when working in windows, share them with other users by leaving a comment below.

let's talk about Windows process priorities... In most cases, there is no need to “play” with setting priorities, but sometimes a competent system administrator can help the system to more correctly distribute processor time between running tasks. There is no single recipe, but by “selection and enumeration” it is quite realizable. Where might you need it? For example, in a bundle of 1C-SQL, you can give more CPU time to 1C and SQL, as the most resource-critical processes.

In general, you can view and change the priority of a running process through the Task Manager

Windows NT / 2000 /7 /2008

On Windows 2012 it was "buried" a little deeper

As you can see from the examples given, only 6 priorities are available to you (as it turns out later, this priority classes). Enough? Microsoft thinks yes. But let's remember the "legendary" phrase of Bill Geist, who said that "640 KB of RAM will be enough for everybody". But time has shown that this is far from the case. :)

Now let's figure out how it really is.

There are actually 32 priority levels in Windows, from 0 to 31.

They are grouped like this:

  • 31 — 16 real time levels;
  • 15 — 1 dynamic levels;
  • 0 - the system level reserved for the zero-page thread.

When creating a process, it is assigned one of six priority classes:

  1. Real time class (value 24),
  2. High class (value 13),
  3. Above normal class (value 10),
  4. Normal class (value 8),
  5. Below normal class (value 6),
  6. or Idle class (value 4).

You can view the priority of a process, as described above, using the Task Manager.

Note: Priorities Above normal and Below normal have been introduced since Windows 2000.

The priority of each thread ( base thread priority) consists of the priority of its process and relative priority the stream itself. There are seven relative thread priorities:

  1. Normal: the same as the process;
  2. Above normal: +1 to the priority of the process;
  3. Below normal: -1;
  4. Highest: +2;
  5. Lowest: -2;
  6. Time critical: sets the base thread priority for the Real time class to 31, for other classes to 15.
  7. Idle: sets the base thread priority for Real time class to 16, for other classes to 1.

The following table shows the process priorities, relative and base priorities of the thread.

Stream priority Process class Process class
Idle class Below normal class Normal class Above normal class High class Real time class
1 IdleIdleIdleIdleIdle
2 Lowest
3 Below ...
4 Idle class NormalLowest
5 Above ...Below ...
6 Below normal class HighestNormalLowest
7 Above ...Below ...
8 Normal class HighestNormalLowest
9 Above ...Below ...
10 Above normal class HighestNormal
11 Above ...Lowest
12 HighestBelow ...
13 High class Normal
14 Above ...
15 Highest
15 Time criticalTime criticalTime criticalTime criticalTime critical
16 Idle
17
18
19
20
21
22 Lowest
23 Below ...
24 Real time class Normal
25 Above ...
26 Highest
27
28
29
30
31 Time critical

Now that we've all learned this, what can we do about it all? Well, for example, start using.

How else can you start a process with a “non-standard” priority or change it?

Method 1. Start a task / process and change the priority through the Task Manager.

Cons of the method:

  • Only 6 priorities available
  • Priority switching is done with the mouse, it is not automated.

Method 2. You can use the START command with the appropriate keys

The available options for the priorities are as follows (I deliberately omit the command line options of the command START not related to the described process of working with priorities):

C: \\\u003e start /?
Starts a separate window to run a specified program or command.
START ["title"]


LOW Start application in the IDLE priority class.
NORMAL Start application in the NORMAL priority class.
HIGH Start application in the HIGH priority class.
REALTIME Start application in the REALTIME priority class.
ABOVENORMAL Start application in the ABOVENORMAL priority class.
BELOWNORMAL Start application in the BELOWNORMAL priority class.

As you can see, the START command makes it possible to start the process with the same 6 priorities that are available through the Task Manager

Disadvantage of the method:

  • Only 6 priorities available

Method 3. Using the wmic.exe utility

As shown above, the Task Manager and START command are rather clumsy for the prioritization task. Let's see how to apply this more flexibly. We will use the utility wmic.exe.

Command line:

wmic process where name \u003d "AppName" CALL setpriority ProcessIDLevel

wmic process where name \u003d "calc.exe" CALL setpriority 32768

wmic process where name \u003d "calc.exe" CALL setpriority "above normal"

Priorities (predefined):

  • idle: 64
  • below normal: 16384
  • normal: 32
  • above normal: 32768
  • high priority: 128
  • real time: 256

Retreat... What if there are several processes of the same name? The process priority can be changed both by the process name and by using the PID (Process ID) of the process.

Here is a short example of running wmic.exe to get the information you need

We use the command:

Note: I will not give an example of this command. The list of processes is too large. Do it yourself, if you wish.

You will get a list of processes running on your local computer. Now run the command:

wmic process list brief | find "cmd.exe"

Result:

I specially launched several copies of cmd.exe to make the illustration more complete.

Now the list of processes is limited only to those processes with the string "cmd.exe" in the name of the executable module. Pay attention to the PID of the process (s).

Now let's try to select the processes of interest to us using WMI directly and without resorting to standard command line tools. To do this, just write:

wmic process where description \u003d "cmd.exe" list brief

Result:

Compare your results. Remember the PID of the CMD.EXE process.

Command line to run wmic.exe

wmic process where processid \u003d "XXXX" CALL setpriority ProcessIDLevel

Well, now we can change the priority of a specific process (for example, with PID \u003d 8476):

wmic process where processid \u003d "8476" CALL setpriority 32768

wmic process where processid \u003d "8476" CALL setpriority "above normal"

Starting with the start console command, you can start the application with the desired priority, specify the time after which the application should be closed, and some other parameters. For more help read start /? All these commands can be written in a * .bat file and used to launch the application. In order not to write * .bat files for each program separately, and not to type the entire command, you can make a high .bat file, with such content

echo off

start / high% 1

and place it in the SendTo directory of your user profile. Then, in order to run a program with a higher priority, you just need to send it to this file using the right mouse button. But it is the executable file that needs to be sent, not the shortcut to it. Of course, this file can be remade and run programs with a different priority.

Add-on: Acceleration of launching programs

XP can work in two modes. The first gives higher priority to the applications launched by the user (Optimize Performance for Applications), the second gives higher priority to background applications and services (Optimize Performance for Background). The settings can be viewed by selecting the System icon in the Control panel, then the Advanced tab and the "Performance options" button. (In the Russian version Control Panel / System / Advanced / Performance Settings).

The first value (for Applications) prioritizes programs based on their priority level. If you are not familiar with this concept, let us briefly explain: by level, the computer decides which programs are more important and spends more processor time on them. The level is determined by two parameters: the Priority Class and the thread priority. Classes are: real time (real-time), high (high), medium (normal), close to zero (idle) priorities. The thread has the following priorities: time critical, high, above normal, normal, below normal, low and idle.

In the table below, you can see how these two parameters affect the execution of the task.

Priority Class

A value from 1 to 31 indicates how much computer time is allocated to each process. The user can change the priority class of the program in two ways. The first is through the Task Manager. It is suitable if the program is already running. Select the "Processes" tab, right-click on the required process, select the "Set Priority" line and set the priority class. The second way is to specify the parameter when starting the program, or to create a command (.CMD) file in a text editor. Options:

start /<класс приоритета> [<путь>]<имя файла>

For instance, start / high c: \\ windows \\ notepad.exe

Be careful about realtime class assignment. Such a program will have a very high priority, which may slow down the execution of other programs. Moreover, if you do not have an SMP system, then an application that is hungry for resources may leave nothing to the system, and you will face a situation where the computer will not respond to your actions, or will respond with a great delay. In the worst case, it can just hang.

This tutorial was made for Source 1, Reborn will be tested as well as possible.

Introduction

The manual was fully updated on February 1, 2014. Most of the teams have not changed. If there are new ones - write.

Setting location

Location (screenshots)

Command List (Start Game)

-console - starts the game with the console turned on. More details:

-novid - on startup, disables the video that is played when the game starts
-toconsole - forcibly launches console, even if the parameter is specified + mapforcing the engine to load the map when the game starts

Command List

-override_vpk - the game will read game elements in \\ steamapps \\ common \\ dota 2beta \\ dota replace and load them into the game. Command is for Modifications.
The use of -override_vpk has been removed by Valve.
A slightly different command was added instead:
-enable_addons - allows to use allowed modifications of client resources ( Mini-map, HUD, icons and sound scripts, music scripts and flash video)
-autoconfig - restores default graphics settings. Ignores any installed configs until this parameter is removed
-dev - includes developer mode... It also disables the automatic loading of the menu background image and stops asking for confirmation to exit.
The last lines of the console will be displayed on top of the game HUD. It is not recommended to use
-nod3d9ex * - turns off (forced) directx 9 external rendering.
-d3d9ex * - includes (forced) directx 9 external rendering.
-32bit - starts the engine in 32-bit mode. Only useful for 64-bit OS.
-full or -fullscreen - run the game in full screen mode
-windowed or -sw - starts the game in screen mode
-w **** -h **** - Launches Dota 2 with a specific screen resolution (width and height). For instance: -w 1280 -h 1024
-noborder - do not display window frame and title when starting the game in windowed mode
-nosound - completely mutes the sound in the game
-nosync * - disables vertical sync.
+ exec "cfg file name" (without quotes) - Automatically loads the CFG configuration file at startup. For example, you can run your special config with settings.
-noaafonts * - disable TrueType fonts (font smoothing)
-insecure - VAC not used when starting the server
-nomaster - the server you created is not visible to other users in the Steam server list
-gl - changes the quality of the game to Opengl, the default is SoftWare.
-heapsize "NUMBER" * - Specifies the size of the paging file (an acceptable figure - the size is 2-4 times the amount of physical RAM) that the game will use (in kilobytes).
Calculated by the formula: (RAM / 2 * 1024). Examples of numbers for OP:

  • 512 MB \u003d\u003e 262144;
  • 1 GB \u003d\u003e 524288;
  • 2 GB \u003d\u003e 1048576;
  • 3 GB \u003d\u003e 1572864;
  • 4 GB \u003d\u003e 2097152;
  • 8 GB \u003d\u003e 4194304
-low - launches the game with LOW priority.
-high * - starts the game with HIGH priority.
-nojoy - disables the joystick in the game
-noipx - does not load IPX connections, saves RAM
-noforcemspd ** - use mouse speed settings from Windows;
-noforcemparms ** - use the mouse button settings from Windows;
-noforcemaccel ** - use mouse acceleration settings from Windows;
-freq "NUMBER" or -refresh "NUMBER" * - sets screen refresh rate (60 Hz is recommended for LCD monitors, and 85 or 100 Hz for CRT)
-nocrashdialog - disables the debugger built into the game, allows you to save a little RAM. Removes dialogue " memory could not be read".
-condebug - turns on debug mode, in which all the contents of the console will be written to a file console.log

* Will help with FPS optimization, but maybe not all teams (so that Dota * did not lag*)
** Mouse acceleration in Windows

Command List (Menu Interface)

-dota_embers 0 - Disabling background animation in the main menu (this is the only way to put old backgrounds in the menu, i.e. they will be without animation)
-dashboard international_2012 - Change menu theme to International 2012
-dashboard international_2013 - Change menu theme to International 2013
-dashboard frostivus_2013 - Change menu theme to Frostivus 2013
-dashboard spirits_2013 - Change menu theme to 3 Spirits Update
-dashboard newbloom_2014 - Change menu theme to Newbloom

List of commands (not working)

-international
-international2012
-halloween
-perfectworld * - Gift orb through a Chinese client
-dxlevel :
-dxlevel 9; launch with DirectX 9.
-dxlevel 8; launch with DirectX 8.
-dxlevel 7; launch with DirectX 7.
-dxlevel 6; launch with DirectX 6.

* May break the client

Frequently asked questions and problems

Save (write) between commands gaps.
- Can I write multiple commands? - Can.
- Most problems with the game solved by checking the cache.
- If you still started the game with the team -perfectworld and made a difference with the registration of a Chinese client, a game, etc. and at the same time, after all, Dota will need to look strange:

  • Check cache
  • Change the Dota language from English to another and vice versa (as a last resort, do the same fraud with Steam itself)
- A problem with disconnecting from the server :
  • Set the Steam.exe process to the Task Manager real time priority (as a last resort, high priority)
  • Start the game with high priority (-high)
- A problem with inability to connect to the server *:
  • Register launch parameter -clientport 27015 (or 27011 -20 i.e. any number from 11 before 20 )
- Endless loading Dota *:
  • Delete everything in the folder \\ Steam \\ userdata \\ and run a cache check.
* Not a 100% solution

-high : high CPU priority in your system, don't cheat
-nod3d9ex : may give a small boost FPS and faster ALT-TAB
But! same this team can break the game (only stops running), as well as if After trying start the game with -nod3d9ex, growth FPS should remain, and then calmly remove this command.
Try to set the mode * in full screen*, for many with * in full screen* with the nod3d9ex command enabled, the game hung or crashed, or crashed when minimized, so a way to fix this problem was invented - the * mode in a window without a frame*. If you do not crash or freeze in full screen mode, leave where there are more FPS, MOST fullscreen mode gives more fps.