comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: GtkAda with several task (or distributed solution?)?
Date: Mon, 30 Apr 2001 14:03:17 GMT
Date: 2001-04-30T14:03:17+00:00	[thread overview]
Message-ID: <FgeH6.3969$SZ5.312038@www.newsranger.com> (raw)
In-Reply-To: cevG6.3620$gX3.225371@news3.oke.nextra.no

In article <cevG6.3620$gX3.225371@news3.oke.nextra.no>, Frank says...
>> Any multi-word data they share may need to be protected from "tearing"
>I'm not sure I understand what you mean here;
>do you mean that if I try to pass a GUI object (the data structure of it)
>between partitions it can be destroyed when (can imagine that)?

No. "Data tearing" is the term I've heard simulation folk use for what CS people
like to call "race conditions" on data. What I'm saying is that if you have one
task updating multi-word data (eg: the xyz acceleration vector of an object),
and another accessing it from over the network, its quite possible for the
reader to see a snapshot of the object with time 1's values for z and time 2's
values for x and y. That would essentially make the overall value complete
garbage. You have to place some kind of read protection (locking, protected
object, etc.) around multi-word objects to prevent this. In many cases (I don't
know about annex E), this can also happen with 64-bit floats.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



      reply	other threads:[~2001-04-30 14:03 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-27 16:20 GtkAda with several task (or distributed solution?)? Frank
2001-04-27  6:40 ` Bobby D. Bryant
2001-04-27 19:49   ` Simon Wright
2001-04-28  8:43   ` Frank
2001-04-28  6:02     ` Bobby D. Bryant
2001-05-01  8:48       ` Frank
2001-05-01  9:00         ` Preben Randhol
2001-05-02  7:21           ` Wilhelm Spickermann
2001-05-02  8:11             ` Preben Randhol
2001-05-02 10:51               ` Gerd Arlitt
2001-05-02  9:23                 ` Preben Randhol
2001-05-01 16:54         ` Bobby D. Bryant
2001-05-02  7:51           ` Wilhelm Spickermann
2001-05-02 16:50             ` Bobby D. Bryant
2001-05-03 18:22               ` Wilhelm Spickermann
2001-05-14 13:56           ` Recompiling GtkAda to handle Annex E variant of s-stratt Frank
2001-05-14 15:22             ` Florian Weimer
2001-05-15 15:10               ` Frank
2001-04-27 17:44 ` GtkAda with several task (or distributed solution?)? Ted Dennison
2001-04-28  8:31   ` Frank
2001-04-30 14:03     ` Ted Dennison [this message]
replies disabled

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