Date: Wed, 28 Nov 2001 10:15:35 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Bruce Evans <bde@zeta.org.au> Cc: current@FreeBSD.ORG, Luigi Rizzo <rizzo@aciri.org> Subject: Re: where is the idle_loop in current ? Message-ID: <XFMail.011128101535.jhb@FreeBSD.org> In-Reply-To: <20011128184046.O2102-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 28-Nov-01 Bruce Evans wrote: > On Mon, 26 Nov 2001, John Baldwin wrote: > >> We don't do preemption in the kernel yet, so they need to yield the CPU when >> another thread is available. The page zeroing thread does this wrong as it >> should check procrunnable() instead of switching after doing N pages. The >> idle > > Except it would always find at least itself runnable :-). No b/c it isn't on the runqueue when it does the check. :) Nor is the default idle loop ever on the runqueues. > Bruce -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.011128101535.jhb>