 |
 |
what the hell are "nice" processes??
|
 |
|
 |
|
Junior Member
Join Date: Mar 2004
Status:
Offline
|
|
i was looking at my activity monitor, cuz its fun to watch sometimes ya know, and i use it to monitor how much ram i have free.... but i was glancing at the processor usage and noticed this.....

% nice processes? what the heck does that mean, they are nice?? do they tell the processor please and thank you and make it feel all giggly inside??
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Feb 2002
Location: Denver
Status:
Offline
|
|
From this page:
A process's priority is determined with a complex formula that includes what the process is doing and how much CPU time the process has already consumed. A special number, called the nice number or simply the nice, biases this calculation: the lower a process's nice number, the higher its priority, and the more likely that it will be run.
On most versions of UNIX, nice numbers are limited from -20 to +20. Most processes have a nice of 0. A process with a nice number of +19 will probably not run until the system is almost completely idle; likewise, a process with a nice number of -19 will probably preempt every other user process on the system.
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2002
Location: case.edu
Status:
Offline
|
|
And a 'nice process' is one whose nice number is nonzero.
|
pb 1440x960 | 1.67, 1.5, 128, 80 | leopard
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Mar 2004
Status:
Offline
|
|
ah, thanks guys! all of this makes more sense now..
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Nov 2001
Status:
Offline
|
|
FYI, you can get more details about it by reading the man page:
'man nice' from the command line.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jun 2000
Location: If I tellz ya, then I gotsta killz ya !
Status:
Offline
|
|
it also makes more sense if you pronounce it correctly, it's "neese", like geese, not "nice" as in pleasant LOL 
|
|
Signatures are ugly. Bitchy women are ugly......YOU do the math :)
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2001
Location: England
Status:
Offline
|
|
Originally Posted by bowwowman
it also makes more sense if you pronounce it correctly, it's "neese", like geese, not "nice" as in pleasant LOL
Are you sure?
I thought it was nice, as in pleasant, because it measures how nice the process will be in giving the other processes CPU time. A higher number == a very nice process, so it doesn't get much done itself.
|
|
What the nerd community most often fail to realize is that all features aren't equal. A well implemented and well integrated feature in a convenient interface is worth way more than the same feature implemented crappy, or accessed through a annoying interface.
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Apr 2002
Location: case.edu
Status:
Offline
|
|
Originally Posted by bowwowman
it also makes more sense if you pronounce it correctly, it's "neese", like geese, not "nice" as in pleasant LOL
It is "nice" as in pleasant. Processes with high nice numbers are 'nice' to other processes.
At first, the nice number was used to make long-term processing jobs get out of the way of interactive progams, by increasing the nice number. Nowadays, the nice number is usually decreased to make a process that needs to run quickly be 'naughty', so the origin of the term 'nice' has become a bit obscured.
|
pb 1440x960 | 1.67, 1.5, 128, 80 | leopard
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|