Questions

Start Program With Realtime Priority By Default

+
0 Votes
Locked

Start Program With Realtime Priority By Default

madnaniqbal2009
Please find the problem of Windows as follows:

When we start a program and it response very slowly when handling large file sizes.

When using the task manager and go to processes tab like (winword.exe) select winword.exe ad after right click it set priority to real-time after that the application works fine.

All we need is to find permanent way this software like winword.exe is always start by default with priority set to real-time either via registry or via systems policy in server.

Kindly help in this regards,

Best Regards,
M Adnan Iqbal
  • +
    0 Votes

    By default, Windows XP set to Normal priority every you open an application. The priorities are Realtime, High, AboveNormal, Normal, BelowNormal, Low.
    So you need set it manually if you want to give an application to higher priority. Windows XP provides two ways to set it. First way, with Task Manager and command line.
    First way, to use Task Manager, you need press Ctrl + Alt + Del keys together. Then click Processes tab, right click the application which will set to certain priority, click Set Priority menu then choose your priority. (To open Task manager you also can through Run menu (Start-Run menu), type taskmgr.exe in box).
    Second way, with command line, click Start - Run menu then in box type start /priority_parameter application_exe_filename. Parameters are /low, /belownormal, /normal, /abovenormal, /realtime. For example if you want to put Microsoft Word to realtime priority, type start /realtime winword.exe then press Enter key.
    Now your favorite application can run on higher priority so then your application can run more smoothly.

    Please post back if you have any more problems or questions.
    If this information is useful, please mark as helpful. Thanks.

    +
    0 Votes
    Jacky Howe

    posted in wrong spot.

    +
    0 Votes
    Jacky Howe

    If you want a particular Windows application to always start with a base priority other than normal, you can use the Start command in a batch file to always launch that application at a higher priority. For example, if you wanted to run an application named PriorityOne at a high priority, you could create a batch file using the start command:
    <br><br>
    start /high c:\priorityone.exe
    <br>
    This command could be used to start the application at a high priority.
    <br>
    To run the command to have the application start in RealTime priority it would be like this.
    <br><br>
    start /realtime c:\priorityone.exe
    <br>
    http://www.informit.com/articles/article.aspx?p=465310&seqNum=1
    <br><br>
    The batch file could be added to either of these Registry paths so that it is started when a User logs on.
    <br>
    ? HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
    <br>
    ? HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    <br><br>
    PsExec v1.94<br>
    By Mark Russinovich<br>
    Published: January 4, 2008<br>

    http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
    <br><br>
    And the batch file and reg file can be copied to the workstations where it can be run to create the timer.cmd and add the Registry entry. add2reg.cmd
    <br><br>
    =========================
    <br>
    Windows Registry Editor Version 5.00
    <br><br>
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]<br>
    "Realtime"="C:\timer.cmd"<br>
    =========================
    <br><br>
    =========================
    <br>
    C: regedit /s def.reg<br>
    goto tim<br>

    :tim<br>
    set timer= C:\timer.cmd<br>
    echo start /realtime c:\priorityone.exe >%timer%<br>
    call C:\timer.cmd<br>
    =========================
    <br><br>
    <i>Keep us informed as to your progress if you require further assistance.</i>
    <br><br>
    <i>If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as <b>Helpful</b> so that others may benefit from the outcome.
    </i>

    +
    0 Votes
    jcollake

    Process Lasso will allow for persistent CPU priorities, I/O priorities, CPU affinities, and more.

    +
    0 Votes

    It's been 4 & 1/2 years...do you think the OP is still looking for an answer?
    Don't poke the dead zombies.
    Wizard57M
    TR Moderator

  • +
    0 Votes

    By default, Windows XP set to Normal priority every you open an application. The priorities are Realtime, High, AboveNormal, Normal, BelowNormal, Low.
    So you need set it manually if you want to give an application to higher priority. Windows XP provides two ways to set it. First way, with Task Manager and command line.
    First way, to use Task Manager, you need press Ctrl + Alt + Del keys together. Then click Processes tab, right click the application which will set to certain priority, click Set Priority menu then choose your priority. (To open Task manager you also can through Run menu (Start-Run menu), type taskmgr.exe in box).
    Second way, with command line, click Start - Run menu then in box type start /priority_parameter application_exe_filename. Parameters are /low, /belownormal, /normal, /abovenormal, /realtime. For example if you want to put Microsoft Word to realtime priority, type start /realtime winword.exe then press Enter key.
    Now your favorite application can run on higher priority so then your application can run more smoothly.

    Please post back if you have any more problems or questions.
    If this information is useful, please mark as helpful. Thanks.

    +
    0 Votes
    Jacky Howe

    posted in wrong spot.

    +
    0 Votes
    Jacky Howe

    If you want a particular Windows application to always start with a base priority other than normal, you can use the Start command in a batch file to always launch that application at a higher priority. For example, if you wanted to run an application named PriorityOne at a high priority, you could create a batch file using the start command:
    <br><br>
    start /high c:\priorityone.exe
    <br>
    This command could be used to start the application at a high priority.
    <br>
    To run the command to have the application start in RealTime priority it would be like this.
    <br><br>
    start /realtime c:\priorityone.exe
    <br>
    http://www.informit.com/articles/article.aspx?p=465310&seqNum=1
    <br><br>
    The batch file could be added to either of these Registry paths so that it is started when a User logs on.
    <br>
    ? HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
    <br>
    ? HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
    <br><br>
    PsExec v1.94<br>
    By Mark Russinovich<br>
    Published: January 4, 2008<br>

    http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
    <br><br>
    And the batch file and reg file can be copied to the workstations where it can be run to create the timer.cmd and add the Registry entry. add2reg.cmd
    <br><br>
    =========================
    <br>
    Windows Registry Editor Version 5.00
    <br><br>
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]<br>
    "Realtime"="C:\timer.cmd"<br>
    =========================
    <br><br>
    =========================
    <br>
    C: regedit /s def.reg<br>
    goto tim<br>

    :tim<br>
    set timer= C:\timer.cmd<br>
    echo start /realtime c:\priorityone.exe >%timer%<br>
    call C:\timer.cmd<br>
    =========================
    <br><br>
    <i>Keep us informed as to your progress if you require further assistance.</i>
    <br><br>
    <i>If you think that any of the posts that have been made by all TR Members, have solved or contributed to solving the problem, please Mark them as <b>Helpful</b> so that others may benefit from the outcome.
    </i>

    +
    0 Votes
    jcollake

    Process Lasso will allow for persistent CPU priorities, I/O priorities, CPU affinities, and more.

    +
    0 Votes

    It's been 4 & 1/2 years...do you think the OP is still looking for an answer?
    Don't poke the dead zombies.
    Wizard57M
    TR Moderator