Solved

How do I set Program's priority ?

Posted on 2004-09-07
7
525 Views
Last Modified: 2006-11-17
I want to run a CPU bound application in my computer (over windows).

But I don't want it to disturb me from working in the computer.

Each time I run the application I choose to lower the priority of the application.

It's not comfortable & sometimes the priority is not low enough.

Is there a way to mark the application as a low priority application ?

Thank you.
0
Comment
Question by:MagicianH
  • 4
  • 2
7 Comments
 
LVL 19

Expert Comment

by:akoster
ID: 11994682
you could run it as a service in order to automate startup and setting the priority.

more on running as services :
http://www.experts-exchange.com/Operating_Systems/Win2000/Q_21074636.html
0
 
LVL 15

Expert Comment

by:Cyber-Dude
ID: 11994976
If youed have the ability to run the application via right-click on it and from the menu youed choose the priority you want to run it, is that OK?

Cyber
0
 

Author Comment

by:MagicianH
ID: 11995031
Cyber, I tried to rightclick my application, I don't see any option to choose the priority.
When did you mean ?
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 15

Expert Comment

by:Cyber-Dude
ID: 11995139
PRIORITIZE PROGRAMS


Courtesy of Andrew Bourdon (PowerPenguin@techie.com).

"Windows 2000 is designed to run applications and services at different priorities. System priorities are how much CPU time a program gets. For example, a high priority program gets more processing time than a low priority program and will thereby run faster.
While application priorities can be set from the command line by typing:

START /[priority] [program]

I have created an Explorer context menu add-on which allows you to change a program's priority. Simply save the following as a .REG file, merge it into the Registry, and then right-click on your desired application to select its priority level from the menu:

-----Begin cut & paste here-----
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell]

[HKEY_CLASSES_ROOT\exefile\shell\XQSHP]
@="Start &Realtime priority"

[HKEY_CLASSES_ROOT\exefile\shell\XQSHP\Command]
@="%systemroot%\\System32\\CMD.EXE /C START \"XQSHP\" /realtime \"%1\""

[HKEY_CLASSES_ROOT\exefile\shell\XQSHQ]
@="Start &High priority"

[HKEY_CLASSES_ROOT\exefile\shell\XQSHQ\Command]
@="%systemroot%\\System32\\CMD.EXE /C START \"XQSHP\" /high \"%1\""

[HKEY_CLASSES_ROOT\exefile\shell\XQSHR]
@="Start &Below Norm priority"

[HKEY_CLASSES_ROOT\exefile\shell\XQSHR\Command]
@="%systemroot%\\System32\\CMD.EXE /C START \"XQSHP\" /belownormal \"%1\""

[HKEY_CLASSES_ROOT\exefile\shell\XQSHS]
@="Start &Low priority"

[HKEY_CLASSES_ROOT\exefile\shell\XQSHS\Command]
@="%systemroot%\\System32\\CMD.EXE /C START \"XQSHP\" /low \"%1\""

------End cut & paste here------"

0
 
LVL 15

Expert Comment

by:Cyber-Dude
ID: 11995144
Give it a try...
:)

Cyber
0
 
LVL 15

Accepted Solution

by:
Cyber-Dude earned 125 total points
ID: 11995149
NOW, right click the program you want to operate and provide it with the priority you want...

Cyber
0
 

Author Comment

by:MagicianH
ID: 11996031
Cyber, Thank you very much.

The perfect answer :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Just about everyone has an old PC laying around.  Ask anyone in the IT industry, whether they are a professional or play in it as a hobby.  From outdated Desktops to cheap "throwaway" laptops, they are all around and not as hard to "fix up" as you m…
In this article we will discuss all things related to StageFright bug, the most vulnerable bug of android devices.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now