From: "John B. Matthews" <nospam@nospam.invalid>
Subject: Re: Basic critical sections question
Date: Sat, 03 Jul 2010 17:48:54 -0400
Date: 2010-07-03T17:48:54-04:00 [thread overview]
Message-ID: <nospam-8D6CD6.17485403072010@news.aioe.org> (raw)
In-Reply-To: 71385df3-5fec-49b9-9d7a-98cb95a346ed@n20g2000prc.googlegroups.com
In article
<71385df3-5fec-49b9-9d7a-98cb95a346ed@n20g2000prc.googlegroups.com>,
usenet@scriptoriumdesigns.com wrote:
> Suppose I have a multi-tasking system where different tasks may
> execute a sequence like
>
> P1(A,B);
> P2(C,D);
> P3(E,F);
>
> and I want to make this sequence a critical section. What is the
> typical Ada way to do this? Would I wrap P1, P2 and P3 in a
> protected object and call as follows (perhaps creating a record to
> hold A..F to make things a bit cleaner)?
>
> PO.P(A,B,C,D,E,F);
>
> Or if not that, what? Thanks.
Looks like what it was designed for. See also,
<http://www.adaic.com/standards/95rat/RAThtml/rat95-p1-2.html#9>
<http://www.adaic.com/standards/05rat/html/Rat-5-3.html>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
next prev parent reply other threads:[~2010-07-03 21:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-03 20:06 Basic critical sections question usenet
2010-07-03 21:48 ` John B. Matthews [this message]
2010-07-04 7:58 ` Dmitry A. Kazakov
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox