comp.lang.ada
 help / color / mirror / Atom feed
From: "Dr. Michael Paus" <paus@ib-paus.com>
Subject: Re: Making a package safe for use by multiple tasks
Date: Sat, 08 Jun 2002 15:39:16 +0200
Date: 2002-06-08T13:39:17+00:00	[thread overview]
Message-ID: <3D020904.1060308@ib-paus.com> (raw)
In-Reply-To: 2tu3gu4cncgni43ljvrqenis1a6n296vt7@4ax.com

Craig Carey wrote:
> 
> On Fri, 07 Jun 2002 21:16:55 GMT, Jeffrey Carter <jrcarter@acm.org>
> wrote:
> 
> 
>>Using access values like this is dangerous, even without trying to bring
>>tasking into the mix. I strongly recommend that you not use access types
>>for your vector processing. Once you do that, it is simple to make your
>>operations Pure, which makes adding tasking very easy, since you need do
>>nothing else.
> 
> 
> What is the name of the software and/or compiler, for which that problem
> was detected ?. I guess that it is not GNAT 3.14+ in Windows and maybe
> not GNAT in some other OSes.

I don't think that Jeffrey Carter had any compiler problem in mind when
he wrote the above statement. The use of access types is dangerous here
because it is difficult to get the algorithm right and because you
encounter all sorts of problems with recursion and tasking. This has
nothing to do with any specific compiler or OS. Just try to figure out
how to extend the concept used for the "+" operator to the computation
of the cross product of two vectors. Try to figure out what happens with
a nested call of this operator.

I also have not seen any statement in this thread which explains what
you are gaining by this access fiddling.

Michael




  reply	other threads:[~2002-06-08 13:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-07 10:07 Making a package safe for use by multiple tasks Alexander Boucke
2002-06-07 11:11 ` Marc A. Criley
2002-06-07 11:47   ` Alexander Boucke
2002-06-07 13:31 ` Dr. Michael Paus
2002-06-07 13:44   ` Making a package safe for use by multiple tasks (Correction) Dr. Michael Paus
2002-06-07 15:00 ` Making a package safe for use by multiple tasks Ted Dennison
2002-06-07 16:37 ` Georg Bauhaus
2002-06-07 21:16 ` Jeffrey Carter
2002-06-08 13:14   ` Craig Carey
2002-06-08 13:39     ` Dr. Michael Paus [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-06-07 10:14 Grein, Christoph
2002-06-07 10:29 ` Alexander Boucke
replies disabled

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