From owner-freebsd-current@FreeBSD.ORG Tue Dec 14 02:10:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 845B916A4CE; Tue, 14 Dec 2004 02:10:09 +0000 (GMT) Received: from outbound0.sv.meer.net (outbound0.sv.meer.net [205.217.152.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55FDB43D48; Tue, 14 Dec 2004 02:10:09 +0000 (GMT) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) iBE2A2wP039011; Mon, 13 Dec 2004 18:10:03 -0800 (PST) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (pc1.oakwoodazabu1-unet.ocn.ne.jp [220.110.140.201]) by mail.meer.net (8.12.10/8.12.10/meer) with ESMTP id iBE29wFL003339; Mon, 13 Dec 2004 18:09:59 -0800 (PST) (envelope-from gnn@neville-neil.com) Date: Tue, 14 Dec 2004 11:09:55 +0900 Message-ID: From: "George V. Neville-Neil" To: Jeff Roberson In-Reply-To: <20041213165627.E60504@mail.chesapeake.net> References: <200412131309.iBDD9XXi045169@repoman.freebsd.org> <20041213082407.U9536@mail.chesapeake.net> <41BDDD5E.9060308@elischer.org> <41BDE477.5050103@freebsd.org> <41BDEAD1.9060308@elischer.org> <20041213152556.R60504@mail.chesapeake.net> <41BE0EB3.8010003@elischer.org> <20041213165627.E60504@mail.chesapeake.net> User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.5 Emacs/21.2 (powerpc-apple-darwin) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII cc: FreeBSD Current cc: Scott Long cc: Julian Elischer cc: Peter Wemm cc: Stephan Uphoff Subject: Re: cvs commit: src/sys/kern sched_ule.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 02:10:09 -0000 At Mon, 13 Dec 2004 17:13:36 -0500 (EST), Jeff Roberson wrote: > If you really have to have the flexibility to do some other method of > concurrency, I suggest we make a table of operations for a process to call > to schedule a thread. That would mean calling setrunqueue(), > choosethread(), adjustrunqueue(), and maybe_preempt() through indirect > pointers. This would mean we could use much simpler versions of these > functions for single threaded programs as well, which would likely reduce > cpu overhead. > As a quick aside, I'd love to see something like this. It could make doing a real time FreeBSD much easier. Later, George