[H-GEN] Priorities

Nick Kwiatkowski nickolas at au1.ibm.com
Fri Jun 6 00:06:12 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]





On Thu, 6 Jun 2003, Robert Brockway  wrote:

>> What is the logic behind negative nice values having higher priorities
>> than positive ones? At first glance it seems a bit backwards, but I'm
>> sure there must be a good (and unknown to me) reason for it.
>>
>> In fact how come they range from -20 to +19, why not 0-39 ?
>
> I'm reasonably sure that originally nice values were only positive and
> that negative nice values were only added later.  So I guess it could be
> seen as historical.

Yup, Rob is quite correct. The original range values were 0 to 39 with the
default value being 20 [1]. Some Un*x versions still use that format....AIX
:)

Ciao,

Nik

[1] "The Magic Garden Explained - The internals of Unix System V Release
4", Berny Goodheart, James Cox.

Nickolas Kwiatkowski
IT Architect
AMS Solutions Enablement (ASE)
Application Management Services
IBM Global Services Australia
phone:  07 3887 6304,  mobile:  0412 121 276,  email:  nickolas at au1.ibm.com
"In the middle of difficulty lies opportunity" - Albert Einstein


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list