Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > what the hell are "nice" processes??

what the hell are "nice" processes??
Thread Tools
Junior Member
Join Date: Mar 2004
Status: Offline
Reply With Quote
Oct 3, 2005, 09:26 PM
 
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
Reply With Quote
Oct 3, 2005, 09:38 PM
 
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
Reply With Quote
Oct 3, 2005, 10:49 PM
 
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
Reply With Quote
Oct 3, 2005, 11:00 PM
 
ah, thanks guys! all of this makes more sense now..
     
Mac Elite
Join Date: Nov 2001
Status: Offline
Reply With Quote
Oct 4, 2005, 11:04 AM
 
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
Reply With Quote
Oct 6, 2005, 08:03 AM
 
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
Reply With Quote
Oct 6, 2005, 04:38 PM
 
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
Reply With Quote
Oct 8, 2005, 09:47 PM
 
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
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2