[H-GEN] Priorities

Andrae Muys andrae.muys at braintree.com.au
Mon Jun 9 21:41:01 EDT 2003


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

Robert Brockway wrote:
> [ Humbug *General* list - semi-serious discussions about Humbug and     ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
> 
> On Sat, 7 Jun 2003, Greg Black wrote:
> 
> 
>>I'd have to study the source a bit to be sure what happens
>>there, but I suspect that most priority algorithms work in such
>>a way that all processes will get a shot at the CPU eventually.
> 
> 
> These days definately.  I have read in various texts who some algorithms
> were susceptible to the "process starvation" problem and that it had ended
> up in production in some OSes.
> 
> 
>>However, if a user or a program sets it nice value as high as
>>possible and then doesn't get much CPU time, we know who to
>>blame :-)
> 
> 
> When I was in the maths dept at UQ, any user process left running for too
> long (measured in seconds of cputime) would get re-niced.  This was
> because the Sun box we were running on had to accomodate 100 simultaneous
> users or more.  Interesting enough, the Professors in the department were
> specifically excluded from the renicing that went one... :)
> 

So let me guess... you inserted 'if(fork()) exit(0)' into your code at 
strategic places?  :)

Andrae

-- 
Andrae Muys                       But can it generate *quantum* Haiku
<andrae.muys at braintree.com.au>    error messages, in Latin, where each
Engineer                          line of the error message is a
Braintree Communications          palindrome? -- Mike Vanier on perl



--
* 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