From owner-freebsd-questions Tue Sep 30 18:48:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA08042 for questions-outgoing; Tue, 30 Sep 1997 18:48:04 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA08019 for ; Tue, 30 Sep 1997 18:47:55 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id LAA13454; Wed, 1 Oct 1997 11:16:42 +0930 (CST) Message-ID: <19971001111641.12444@lemis.com> Date: Wed, 1 Oct 1997 11:16:41 +0930 From: Greg Lehey To: Changho Choi Cc: freebsd-questions@FreeBSD.ORG Subject: Re: kernel programming in 4.3BSD References: <3431A605.35AEBDE1@mmlab.snu.ac.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <3431A605.35AEBDE1@mmlab.snu.ac.kr>; from Changho Choi on Wed, Oct 01, 1997 at 10:23:17AM +0900 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, Oct 01, 1997 at 10:23:17AM +0900, Changho Choi wrote: > hello there! > I have some questions, if you know about those, reply for me please. > (I use 4.3BSD....) Really? Which version? > 1. I want to know how long one processor occupies CPU before > happening context switching. In other words, how often does context > switching > happen. how can I change that time?(context switching interval) On the VAX, 100 ms. > 2. Is there any way to use math fuctions(for example, log(), > sqrt() functions...) in kernel? I think this is a Bad Idea. But if you insist, you can compile them in. > 3. Do you know how can I delay the message which pass by the > kernel? > I wanna delay the message for some time in kernel. I don't know what you mean by this. 4.3BSD was introduced in 1987, and it's pretty much obsolete. If you want to find details, I'd recommend that you read "The Design and Implementation of the 4.3BSD UNIX Operating System", by Sam Leffler, Kirk McKusick, Mike Karels and John Quarterman (Addison Wesley, ISBN 0-201-06196-1). On the other hand, if you want a modern BSD system, and you have the appropriate hardware, I'd recommend that you get hold of FreeBSD, which bases on 4.4BSD. Greg