Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Sep 1998 20:13:44 +0900
From:      Choi Young Jin <s198322@ccs.sogang.ac.kr>
To:        nrahlstr@FreeBSD.ORG, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: I want to a man who interest in kernel source(specially CPU    Scheudling)!!
Message-ID:  <35FCFA67.8FCB2964@ccs.sogang.ac.kr>
References:  <Pine.GSO.3.96.980915211232.23851A-100000@tundra.winternet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> The best place to consult for that would be the code.  Have you looked in
> /sys/kern/kern_synch.c?  is this what you are looking for?

Thanks for your respose!

Yes!. But the source informs me ONLY the calculation formula.
What to gain is the REASON of formula.
For example, the following is a formula that calculate priority.
>  p_usrpri = PUSER + (p_cpu / 4 ) + (2 * p_nice);
> Why does it multiply p_nice by 2?
>Why does it add the above result ,2*p_nice?
>Cannot it substract 2*p_nice from PUSER+(p_cpu/4)?
>etc...
I would have sought the reason at books include 'The Design and Implement of
4.4BSD', web page, etc.. But I cannot found the reason.





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35FCFA67.8FCB2964>