public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Nick Garnett <nickg@cygnus.co.uk>
To: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] Thread states
Date: Wed, 10 Jan 2001 03:30:00 -0000	[thread overview]
Message-ID: <wwgk883ejos.fsf@balti.cambridge.redhat.com> (raw)
In-Reply-To: <Pine.GSO.4.10.10101100009230.19243-100000@sierra.ee.ucla.edu>

Paleologos Spanos <paleolog@ee.ucla.edu> writes:

>  From what I have understood ,the wait_queue is a number of bits with
> every bit to represent a specific thread which is on the scheduler.So
> every bit is 1 if the corresponding thread is waiting for execution or 0
> if it has finished(EXITED state).Is this correct?

The bit will also be zero if the thread is waiting for some reason, or
has been suspended. The bit is only ever 1 if the thread is ready to
execute.

>  So,in my previous mail I was asking if after a thread has completed its
> execution ,will the corresponding bit on the wait_queue become 0.
> 

Yes, since the thread in no-longer runnable. In addition it also
deregisters itself from the scheduler so another thread could be
created with it's priority. So, if you restart the thread it may be
given a different priority.

-- 
Nick Garnett, eCos Kernel Architect
Red Hat, Cambridge, UK

  reply	other threads:[~2001-01-10  3:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-09 16:00 Paleologos Spanos
2001-01-09 16:55 ` Jonathan Larmour
2001-01-10  0:17   ` Paleologos Spanos
2001-01-10  3:30     ` Nick Garnett [this message]
2001-01-10  9:08     ` Jonathan Larmour
2001-04-12 14:28 Paleologos Spanos
2001-04-13  9:27 Paleologos Spanos
2001-04-17 12:46 Paleologos Spanos
2001-04-17 15:55 ` Jonathan Larmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wwgk883ejos.fsf@balti.cambridge.redhat.com \
    --to=nickg@cygnus.co.uk \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).