comp.lang.ada
 help / color / mirror / Atom feed
From: Matthew Heaney <matthew_heaney@acm.org>
Subject: Re: D.10
Date: 1999/04/13
Date: 1999-04-13T00:00:00+00:00	[thread overview]
Message-ID: <m3lnfxtan3.fsf@mheaney.ni.net> (raw)
In-Reply-To: 7eu6ud$8lc$1@bgtnsc03.worldnet.att.net

"James S. Rogers" <jimmaureenrogers@worldnet.att.net> writes:

> Matthew Heaney wrote in message ...
> >Paragraph D.10 (7) states that
> >
> >"The operations Set_True and Set_False are atomic with respect to each
> >other and with respect to Suspend_Until_True..."
> >
> >
> >Q: Is Suspend_Until_True atomic with respect to Suspend_Until_True?
> >
> >In 12.3.1 of Burns and Wellings, they state that a semaphore can be used
> >to program mutual exclusion between two tasks, like this:
> >
> 
> Why not implement this as a protected object instead of a task. Protected
> operations are guaranteed to be atomic.


I am exploring primitive (but potentially more efficient) ways to
synchronize tasks.

The RM is ambiguous.  It doesn't say specifically that the suspension
object can be shared this way (ie that Suspend_Until_True is atomic wrt
other calls to Suspend_Until_True), but it doesn't say it can't be.

I would like to know the specific intent of the language designers, and
whether or not the algorithm in B&W is in fact legal.























  reply	other threads:[~1999-04-13  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-12  0:00 D.10 Matthew Heaney
1999-04-12  0:00 ` D.10 Steve Quinlan
1999-04-12  0:00 ` D.10 James S. Rogers
1999-04-13  0:00   ` Matthew Heaney [this message]
1999-04-13  0:00     ` D.10 Robert Dewar
1999-04-13  0:00       ` D.10 Matthew Heaney
1999-04-13  0:00       ` D.10 Robert Dewar
1999-04-13  0:00         ` D.10 Matthew Heaney
1999-04-13  0:00           ` D.10 Robert A Duff
1999-04-13  0:00 ` D.10 Robert Dewar
1999-04-13  0:00   ` D.10 Robert A Duff
1999-04-13  0:00     ` D.10 Robert Dewar
1999-04-13  0:00     ` D.10 Robert Dewar
1999-04-13  0:00   ` D.10 Matthew Heaney
1999-04-13  0:00     ` D.10 Tucker Taft
1999-04-14  0:00       ` D.10 Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox