From owner-freebsd-arch Wed Oct 9 11:52:58 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F18E37B401 for ; Wed, 9 Oct 2002 11:52:57 -0700 (PDT) Received: from park.rambler.ru (park.rambler.ru [217.73.193.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AC0643E75 for ; Wed, 9 Oct 2002 11:52:56 -0700 (PDT) (envelope-from is@rambler-co.ru) Received: from is (is.stack.net [217.73.193.40]) by park.rambler.ru (8.11.6/8.9.3) with ESMTP id g99Iqm079966; Wed, 9 Oct 2002 22:52:48 +0400 (MSD) (envelope-from is@rambler-co.ru) Date: Wed, 9 Oct 2002 22:52:48 +0400 (MSD) From: Igor Sysoev X-Sender: is@is To: Julian Elischer Cc: arch@FreeBSD.ORG Subject: Re: Scheduler framework. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 9 Oct 2002, Julian Elischer wrote: > > > If a thread mailbox IS provided: > > > the syscall is entered. > > > the thread blocks. A second thread is invoked and attached > > > to the KSE, which is disconnected from the original thread. > > > > Sorry, where did this second thread come from ? > > there is a thread_allocator that allocates threads on demand. > > Actually the process ahs a couple of spare threads "Up its sleave" > so it doesn't have to go to teh thread allocator every time.. As I understand this second thread has user-level context and its context pointed by tm_context.uc_link of blocked thread mailbox. Am I right ? If it's so then can several threads use the same second thread context ? Igor Sysoev http://sysoev.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message