comp.lang.ada
 help / color / mirror / Atom feed
From: "Mike Silva" <mjsilva@jps.net>
Subject: Re: Ada Protected Object Tutorial #1
Date: 1999/12/17
Date: 1999-12-17T00:00:00+00:00	[thread overview]
Message-ID: <GOv64.376$tb.47674@news.wenet.net> (raw)
In-Reply-To: 385984BC.1FB1@hello.nl

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1702 bytes --]

(Ada newbie warning still in effect...)

If you don't allow clairvoyance or semaphores to indicate the beginning and
end of the transaction, how about building a "transaction request" (could be
a list or a set of ON bits in a modular <unsigned> type) and passing this
request to the protected object.  Then, each requested entry could, upon
finishing, examine the transaction request and requeue on the next requested
entry (requeue is an atomic action).  You'd also need to pass a parameter
that could accomodate all the requested transactions (e.g. an IN OUT record
<in C you'd pass a pointer to a struct>), since each requeued entry must
have either the same (original) parameters or no parameters.

Ada experts are of course invited to comment on the correctness of the
above...

Mike

Karel Th�nissen wrote in message <385984BC.1FB1@hello.nl>...
>....
>I am wondering whether there is a clean solution to the problem that Mr
>Kylheku presented: how can we combine several protected type services
>into one transaction-like construct without requiring clairvoyance or
>retrofitting. Of course we can always go back and change the code in the
>protected type and offer the combined invocation of the multiplicity of
>services as a single integrated service, but this option requires
>recoding, recompilation and re-verification.
>
>Solutions that do not use protected types are also welcome, if they are
>safe and clean. So bluntly providing the services without any
>concurrency protection and counting for the caller's willingness to use
>a semaphore is outside the competition.
>
>--
>
>Groeten, Karel Th�nissen
>
>Hello Technologies develops high integrity software for complex systems






  reply	other threads:[~1999-12-17  0:00 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-15  0:00 Ada Protected Object Tutorial #1 James S. Rogers
1999-12-16  0:00 ` Kaz Kylheku
1999-12-16  0:00   ` John English
1999-12-16  0:00     ` Ed Falis
1999-12-16  0:00       ` Usenet Poster Boy
1999-12-17  0:00     ` Karel Th�nissen
1999-12-17  0:00       ` Mike Silva [this message]
1999-12-17  0:00       ` Laurent Guerby
1999-12-18  0:00         ` Kaz Kylheku
1999-12-18  0:00           ` Robert A Duff
1999-12-18  0:00             ` Kaz Kylheku
1999-12-18  0:00           ` Laurent Guerby
1999-12-18  0:00             ` Kaz Kylheku
1999-12-19  0:00               ` Laurent Guerby
1999-12-20  0:00                 ` Stanley R. Allen
1999-12-21  0:00               ` Robert I. Eachus
     [not found]             ` <33qr5scnbs04v391ev4541p5bv48hklg3q@4ax.com>
1999-12-20  0:00               ` Robert A Duff
1999-12-18  0:00         ` Karel Th�nissen
1999-12-18  0:00           ` Laurent Guerby
1999-12-24  0:00       ` Kenneth Almquist
1999-12-16  0:00   ` James S. Rogers
1999-12-17  0:00     ` Laurent Guerby
1999-12-17  0:00   ` Robert A Duff
1999-12-17  0:00     ` Vladimir Olensky
1999-12-17  0:00   ` Tucker Taft
1999-12-18  0:00     ` Kaz Kylheku
1999-12-18  0:00       ` Robert A Duff
1999-12-18  0:00         ` Kaz Kylheku
1999-12-19  0:00           ` swhalen
1999-12-19  0:00             ` Kaz Kylheku
1999-12-19  0:00               ` Robert Dewar
1999-12-19  0:00               ` Laurent Guerby
1999-12-20  0:00       ` Vladimir Olensky
1999-12-26  0:00         ` Ehud Lamm
1999-12-26  0:00           ` Robert Dewar
1999-12-26  0:00             ` Kaz Kylheku
1999-12-27  0:00               ` Robert Dewar
1999-12-27  0:00               ` Robert Dewar
1999-12-27  0:00                 ` Jean-Pierre Rosen
1999-12-27  0:00                 ` Richard D Riehle
1999-12-27  0:00                   ` Robert Dewar
1999-12-31  0:00                     ` Richard D Riehle
2000-01-02  0:00             ` Tucker Taft
1999-12-17  0:00 ` Robert A Duff
1999-12-18  0:00   ` Kaz Kylheku
replies disabled

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