Date: Wed, 16 Apr 1997 22:38:04 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: current@FreeBSD.org Cc: chuckr@mat.net (Chuck Robey) Subject: Re: scheduler Message-ID: <19970416223804.WH61024@uriah.heep.sax.de> In-Reply-To: <Pine.BSF.3.91.970416120701.1159A-100000@Journey2.mat.net>; from Chuck Robey on Apr 16, 1997 12:08:36 -0400 References: <Pine.BSF.3.91.970416120701.1159A-100000@Journey2.mat.net>
next in thread | previous in thread | raw e-mail | index | archive | help
As Chuck Robey wrote: > For an OS class I'm in now (for which I'm writing as OS, actually) I need > to get a look at the FreeBSD scheduler code .... does anyone know where > that is? At different locations. :) The machine-dependant part is under /sys/i386/i386, mainly in swtch.s. You'll for example find the idle loop there, and see how the rtprio/ normal/idleprio queues are handled. You'll also learn from there why FreeBSD is ``cooler'' than messy DOS (yielding for example twice the battery operating time on our Toshiba notebook compared to Win95) -- it simply issues a `hlt' instruction to the CPU if nothing else is to be done. The machine-independant part is in /sys/kern/kern_synch.c. I have no idea about Peter D.'s recent Posix.4 enhancements, but they might probably make an interesting reading in this context as well. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970416223804.WH61024>