public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Woller, Thomas" <tom.woller@cirrus.com>
To: "'Andrew Lunn'" <andrew.lunn@ascom.ch>,
	"Woller, Thomas" <tom.woller@cirrus.com>
Cc: eCos users <ecos-discuss@sources.redhat.com>
Subject: RE: [ECOS] cyg_semaphore_post
Date: Mon, 11 Feb 2002 09:08:00 -0000	[thread overview]
Message-ID: <973C11FE0E3ED41183B200508BC7774C022FBA92@csexchange.crystal.cirrus.com> (raw)

The question about a specific example made me go back and ask the
core s/w team what specific implementation they were looking for
with this priority based wakeup scheme.  we are rewriting some of
the code as well as porting.  
basically, the current s/w does not use multiple priorities, but
their plan is to have "task rendezvous" events in which a
particular event needs to occur before a series of threads must
run each with their associated functionality. the threads don't
depend on each other (just that an event occurred) but have
definite priorities among themselves.  an example might be when a
STOP or REVERSE command occurs with a DVD player.  a series of
internal threads must cleanup now that PLAY is no longer the
state, and the Video is the highest priority, with audio coming
next and then so on.
that's all i can give as an example right now, but perhaps we
don't need this functionality when we get further down the design
and implementation phases.  and perhaps the mutex as robin
indicated might be sufficient. thanks for all the information,
and i'll give more specific info when i have the example.
Tom



>You might try a mutex, a condition variable and an appropriate
priority
>inversion protection protocol instead of a counting semaphore.

[snip]

Robin


On Mon, Feb 11, 2002 at 09:10:16AM -0600, Woller, Thomas wrote:
> When there are a series of
> threads waiting on the same semaphore, we basically want the
> highest priority thread to run, NOT the first one that happened
> to wait on the semaphore.

OK. You use this sort of Semaphore. You should be able to answer
my
question... to me it still does not make sense. Why do you want
prioritization on what gets woken up? Please can you give an
example...

        Andrew

Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

             reply	other threads:[~2002-02-11 17:08 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-11  9:08 Woller, Thomas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-02-11  7:10 Woller, Thomas
2002-02-11  7:19 ` Andrew Lunn
2002-02-11  8:39 ` Robin Farine
2002-02-13  5:49 ` Jonathan Larmour
2002-02-11  3:56 Stijn Symons
2002-02-11  4:10 ` Andrew Lunn
2002-02-11  4:37   ` Stijn Symons
2002-02-11  5:22     ` Robin Farine
2002-02-11  7:56       ` Chris Gray
2002-02-14 20:45       ` Nick Garnett
2002-02-15  2:07         ` Robin Farine
2002-02-15  3:39           ` Nick Garnett
2002-02-15  8:18             ` Robin Farine
2001-06-13  8:42 harri.siirtola
2001-06-13  4:46 [ECOS] GDB and eCos andre33
2001-06-13  7:44 ` [ECOS] cyg_semaphore_post Joerg Rapka
2001-06-13  8:27   ` Bart Veer

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=973C11FE0E3ED41183B200508BC7774C022FBA92@csexchange.crystal.cirrus.com \
    --to=tom.woller@cirrus.com \
    --cc=andrew.lunn@ascom.ch \
    --cc=ecos-discuss@sources.redhat.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).