From owner-freebsd-questions Tue Sep 15 22:26:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA03195 for freebsd-questions-outgoing; Tue, 15 Sep 1998 22:26:50 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ccs.sogang.ac.kr (ccs.sogang.ac.kr [163.239.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA03161; Tue, 15 Sep 1998 22:26:42 -0700 (PDT) (envelope-from s198322@ccs.sogang.ac.kr) Received: from ccs.sogang.ac.kr by ccs.sogang.ac.kr (8.8.8/Sogang) id OAA00629; Wed, 16 Sep 1998 14:24:38 +0900 (KST) Message-ID: <35FCFA67.8FCB2964@ccs.sogang.ac.kr> Date: Mon, 14 Sep 1998 20:13:44 +0900 From: Choi Young Jin Organization: Sogang Uni. X-Mailer: Mozilla 4.5b1 [en] (X11; I; FreeBSD 3.0-971225-SNAP i386) X-Accept-Language: ko,en MIME-Version: 1.0 To: nrahlstr@FreeBSD.ORG, "freebsd-questions@FreeBSD.ORG" Subject: Re: I want to a man who interest in kernel source(specially CPU Scheudling)!! References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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