Default high priority app launch?

finelarme Posted messages 60 Status Member -  
 Turok -
Hello

Do you have any advice on how to set an application to high priority by default? For Windows 7.

In my case, it's an application (.exe) that points to Java (which I would like to run in high priority by default).

Thank you for your help :).

_

Configuration: Windows 7 / Chrome 29.0.1547.66

4 answers

  1. finelarme Posted messages 60 Status Member 2
     
    Your answer is good, but it does not allow you to set the default launch; you have to redo the manipulation each time.

    Do you see what I mean?
    1
    1. Cesel45 Posted messages 13762 Registration date   Status Contributor Last intervention   2 845
       


      Assign the right priority at startup


      The previous solution is not optimal if you know in advance what priority you want to assign to a task. We will see here how to give the desired priority at startup.

      It is not possible (to my knowledge) to determine the priority of a program from its shortcut. Ouch. But you can determine the priority of a process via the "start" command.

      To launch the process toto.exe with the priority "below normal," simply create a small batch file (a batch file is a small program that executes a few simple tasks). To create this batch file (which we will call run.bat), use a simple text editor (such as Notepad). run.bat should contain
      @echo off
      start /belownormal toto.exe


      Save this file in the directory that contains toto.exe. All that remains to be done is to execute run.bat instead of toto.exe.

      Important note: if toto.exe creates child processes, all the child processes will have the same priority. (this is usually the desired behavior...)

      The table below presents the different priority classes available, the option name for the start command, and a small comment.

      French name parameter for "start" Description
      =============== =============== =========================
      Low /low the lowest priority. Basically, the process is halted if something else is running.
      Below normal /belownormal a good compromise: the calculation runs at a reasonable speed but the machine remains quite usable.
      Normal (/normal) default priority.
      Above normal /abovenormal improves CPU time resources for the process. Slows down the machine for other tasks.
      High /high the machine becomes completely unusable.
      Real-Time /realtime Highly discouraged!! (Windows cannot manage real-time...)
      1