Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to change process priority

How can I change the cpu priority of a process?
I could not find a way to do this using the Activity Monitor. How about a command using the terminal app?
When I am using Handbrake, I would like to lower its process priority to compute in the background.

Thank you in advance.

Dual PowerMAC G5, G5 Mac Mini, CoreDuo MacBook, Mac OS X (10.4.9)

Posted on Apr 19, 2008 10:24 AM

Reply
Question marked as Best reply

Posted on Apr 20, 2008 8:50 PM

you have to refer to the process by its ID. Go to the Activity Monitor (Apps>Utilities) and find handbrake and its ID. Use renice to re-prioritize an already-running process--nice is to start the process from the terminal.

To set it to its lowest priority:

sudo renice 20 2933

where 2933 is the process' ID (change it to yours). 0 priority is default, -20 is highest.
8 replies
Question marked as Best reply

Apr 20, 2008 8:50 PM in response to JeffCMKRNL

you have to refer to the process by its ID. Go to the Activity Monitor (Apps>Utilities) and find handbrake and its ID. Use renice to re-prioritize an already-running process--nice is to start the process from the terminal.

To set it to its lowest priority:

sudo renice 20 2933

where 2933 is the process' ID (change it to yours). 0 priority is default, -20 is highest.

Apr 19, 2008 5:03 PM in response to BDAqua

That looks like what I am looking for.
I tried it but I could not get it to work. I think it is because of the "utility" argument. At first I used the path to the handbrake application. This is what I tried and the error I received:
Arakis:~ jeff$ nice 10 /Applications/HandBrake/HandBrake.app
nice: 10: No such file or directory
What is meant by the "utility" argument?

Apr 21, 2008 1:02 PM in response to BDAqua

That is exactly how I did it. I did have a space after the 10, and I dragged the application to the terminal window, and it responded with the "Not found" error message.

I will try the renice when I get home tonight. At work I am using Windows 2000 and Lotus notes (AAAArrrrgh!). I also support 4 PDP-11s and 6 antique VAX systems and an old Stratus.

I have renamed the title of my position to "Paleocybernetic Systems Administrator".

How to change process priority

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.