From owner-freebsd-arch Sun Nov 28 17:37:47 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 95FB114C94 for ; Sun, 28 Nov 1999 17:37:41 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id CAA03610 for ; Mon, 29 Nov 1999 02:37:40 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id CAA60874 for freebsd-arch@freebsd.org; Mon, 29 Nov 1999 02:37:40 +0100 (MET) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id BA57D15469 for ; Sun, 28 Nov 1999 17:06:58 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id RAA47262; Sun, 28 Nov 1999 17:06:57 -0800 (PST) (envelope-from dillon) Date: Sun, 28 Nov 1999 17:06:57 -0800 (PST) From: Matthew Dillon Message-Id: <199911290106.RAA47262@apollo.backplane.com> To: Arun Sharma Cc: freebsd-arch@freebsd.org Subject: Re: Threads References: <199911241905.LAA20045@apollo.backplane.com> <14396.15070.190669.25400@avalon.east> <199911241941.LAA20231@apollo.backplane.com> <19991124212521.W301@sturm.canonware.com> <199911280338.TAA40637@apollo.backplane.com> <19991127205752.A7145@sharmas.dhs.org> <199911281641.IAA44909@apollo.backplane.com> <19991128102612.A8570@sharmas.dhs.org> Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :On Sun, Nov 28, 1999 at 08:41:57AM -0800, Matthew Dillon wrote: :> I think we are already operating under the assumption that the current :> scheduler must be rewritten, or at least significantly modified. Amoung :> other things we have to get rid of all the extra junk that is in assembler :> that could easily be C (I seem to recall someone actually working towards :> that goal, was any of that ever committed? It seemed pretty good). : :Yes, that was commited. But I think it can be better. Right now, the code :goes from : :C -> asm (context switch out) -> C (pick a new process) -> asm (switch in) -> C : :I think it should be : :lock :C (pick a new process p) :asm (switch from curproc to p) :unlock : : -Arun Yes, I agree with you completely. Limiting the asm to just switch between two processes and throwing the rest into C is a good goal to have. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message