From owner-freebsd-current@FreeBSD.ORG Tue Jun 22 22:57:27 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 092ED16A4EE; Tue, 22 Jun 2004 22:57:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0165443D53; Tue, 22 Jun 2004 22:57:27 +0000 (GMT) (envelope-from bmilekic@FreeBSD.org) Received: from freefall.freebsd.org (bmilekic@localhost [127.0.0.1]) i5MMvQYM026955; Tue, 22 Jun 2004 22:57:26 GMT (envelope-from bmilekic@freefall.freebsd.org) Received: (from bmilekic@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5MMvQKq026954; Tue, 22 Jun 2004 22:57:26 GMT (envelope-from bmilekic) Date: Tue, 22 Jun 2004 22:57:26 +0000 From: Bosko Milekic To: Bosko Milekic Message-ID: <20040622225726.GA26611@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: freebsd-current@freebsd.org cc: Julian Elischer Subject: Re: ithread priority question... 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, 22 Jun 2004 22:57:27 -0000 I'm obviously talking nonsense below. Sorry. The real explanation is that they are put on a runqueue when executed: if (TD_AWAITING_INTR(td)) { CTR2(KTR_INTR, "%s: setrunqueue %d", __func__, p->p_pid); TD_CLR_IWAIT(td); setrunqueue(td); if (do_switch && (ctd->td_critnest == 1) ) { ... Sorry again! -bosko Julian Elischer wrote: >On Tue, 22 Jun 2004, John Baldwin wrote: ... >> That was the intention. One question though, if the ithreads aren't on the >> system run queues then which run queues are they on? > >aren't they run from the interupt? Not always. They have to be put on a runqueue if they block on a mutex, say. -Bosko