comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Distributed Computing in Ada
Date: Fri, 28 Aug 2009 15:57:49 -0400
Date: 2009-08-28T15:57:49-04:00	[thread overview]
Message-ID: <wccprafr9s2.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: h798ul$4ak$1@news.tornevall.net

"Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org> writes:

> Robert A Duff wrote:
>> Now we have a bunch of tasks accessing shared variable Global,
>> all correctly synchronized by the rendezvous.
>
> The accesses look unsynchronized to me.

Yes, you're right (assuming the entries can be called simultaneously).
Thanks for pointing out my sloppiness.  What was I thinking?  :-(

I don't think it affects my main point, though, which is that the
compiler doesn't know which variables are shared.  Of course,
if they are shared, we would hope they would be properly
synchronized.  So change my example so they are: e.g. have
a single task or protected object that calls P.Q.  And have lots of
tasks that call that.

In which task's address space should Global be allocated?
The environment task creates and initializes it, so...

- Bob



  reply	other threads:[~2009-08-28 19:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-24 13:22 Distributed Computing in Ada Allison Beh
2009-08-24 13:45 ` Jacob Sparre Andersen
2009-08-24 16:49 ` Georg Bauhaus
2009-09-05  9:31   ` Allison Beh
2009-09-05 12:06     ` Ludovic Brenta
2009-09-05 13:20       ` Allison Beh
2009-09-05 16:49         ` Vadim Godunko
2009-08-25 11:58 ` Gene
2009-08-25 12:00 ` Gene
2009-08-27 15:28   ` Robert A Duff
2009-08-27 23:27     ` Jeffrey R. Carter
2009-08-28  0:35       ` Robert A Duff
2009-08-28  4:07         ` abyhoe
2009-08-28  8:34           ` Ludovic Brenta
2009-08-28  8:57             ` abyhoe
2009-08-28  9:03               ` abyhoe
2009-08-28  9:33                 ` Ludovic Brenta
2009-08-28 13:25             ` John McCabe
2009-08-28 13:38               ` Ludovic Brenta
2009-08-28 14:59                 ` Robert A Duff
2009-08-28  4:19         ` Jeffrey R. Carter
2009-08-28 12:24           ` Robert A Duff
2009-08-28 18:57             ` Jeffrey R. Carter
2009-08-28 19:57               ` Robert A Duff [this message]
     [not found]         ` <cd917fe6-d84c-47bc-b00e-76baae76ec6e@u16g2000pru.googlegroups.com>
2009-08-28  8:40           ` Jacob Sparre Andersen
2009-08-28 12:29           ` Robert A Duff
2009-08-28 15:00 ` Per Sandberg
replies disabled

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