Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2004 22:57:26 +0000
From:      Bosko Milekic <bmilekic@FreeBSD.org>
To:        Bosko Milekic <bmilekic@freebsd.org>
Cc:        Julian Elischer <julian@elischer.org>
Subject:   Re: ithread priority question...
Message-ID:  <20040622225726.GA26611@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040622225726.GA26611>