public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: Phil Edwards <pedwards@disaster.jaj.com>
To: nobody@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org
Subject: Re: libstdc++/4367: Sparc atomicity.h routines can lock up on some OS.
Date: Thu, 20 Sep 2001 08:26:00 -0000	[thread overview]
Message-ID: <20010920152601.3881.qmail@sourceware.cygnus.com> (raw)

The following reply was made to PR libstdc++/4367; it has been noted by GNATS.

From: Phil Edwards <pedwards@disaster.jaj.com>
To: eric.norum@usask.ca
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/4367: Sparc atomicity.h routines can lock up on some OS.
Date: Thu, 20 Sep 2001 11:23:25 -0400

 On Thu, Sep 20, 2001 at 02:50:01PM -0000, eric.norum@usask.ca wrote:
 > >Description:
 > The sparc version of the routines in atomicity.h can lock up
 > on operating systems which provide strict priority-based
 > scheduling (e.g. vxWorks, pSOS+, eCOS, RTEMS).  Here's the
 > scenario:
 > 1) Low priority task enters __exchange_and_add and sets
 >    the lock.
 > 2) While low-priority task is still active in
 >    __exchange_and_add a higher-priority task preempts.
 > 3) The higher-priority task enters __exchange_and_add and
 >    enters an infinite loop trying to set the lock.
 
 A classic case of priority inversion.  Wow.  I never imagined I'd be
 involved in one of those.  :-)
 
 One of the various Mars rover-type vehicles got locked up by priority
 inversion, I recall.
 
 -- 
 Would I had phrases that are not known, utterances that are strange, in
 new language that has not been used, free from repetition, not an utterance
 which has grown stale, which men of old have spoken.
                                      - anonymous Egyptian scribe, c.1700 BC


             reply	other threads:[~2001-09-20  8:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-20  8:26 Phil Edwards [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-11-02  1:38 davem
2002-11-01 18:05 bkoz
2002-10-01 22:14 davem
2002-04-02 13:56 Richard Henderson
2002-04-02  7:36 Eric Norum
2002-04-02  0:16 Richard Henderson
2002-04-01 18:56 bkoz
2001-09-20  7:56 eric.norum

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=20010920152601.3881.qmail@sourceware.cygnus.com \
    --to=pedwards@disaster.jaj.com \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=nobody@gcc.gnu.org \
    /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).