comp.lang.ada
 help / color / mirror / Atom feed
From: Gary Scott <garylscott@sbcglobal.net>
Subject: Re: A curiosity...
Date: Sat, 06 Dec 2008 17:15:35 -0600
Date: 2008-12-06T17:15:35-06:00	[thread overview]
Message-ID: <BID_k.9158$yr3.8197@nlpi068.nbdc.sbc.com> (raw)
In-Reply-To: <CnD_k.16354$M33.1959@newsfe03.iad>

Hyman Rosen wrote:

> Adam Beneschan wrote:
> 
>> This thread started with a comment about a tutorial that showed
>> students the "right" way to accomplish a certain task.  What do you
>> want to bet that this tutorial didn't say "This works only for such-
>> and-such implementations"
> 
> 
> The distinction between right and wrong that the tutorial
> was making was about not having multiple threads access a
> shared object because of unpredictable timing. I doubt that
> there has ever been a C implementation on any architecture
> where it was wrong to convert a small integer to pointer
> and back.
Interesting, I never realized that there is this huge issue or 
controversy with shared memory/objects.  These techniques have been used 
for 50 years and there are well known ways to synchronize and/or 
structure data to avoid timing issues.  Of course some operating systems 
are better than others.  My experience is mostly with OS' that provide 
no assistance at all, so you may define a handshaking process into the 
data access process.

-- 

Gary Scott
mailto:garylscott@sbcglobal dot net

Fortran Library:  http://www.fortranlib.com

Support the Original G95 Project:  http://www.g95.org
-OR-
Support the GNU GFortran Project:  http://gcc.gnu.org/fortran/index.html

If you want to do the impossible, don't hire an expert because he knows 
it can't be done.

-- Henry Ford



  reply	other threads:[~2008-12-06 23:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04 20:47 A curiosity mockturtle
2008-12-04 21:17 ` Adam Beneschan
2008-12-04 21:48   ` Hyman Rosen
2008-12-04 22:04     ` Ludovic Brenta
2008-12-04 22:10       ` Ludovic Brenta
2008-12-04 22:24         ` Hyman Rosen
2008-12-05  8:02         ` Samuel Tardieu
2008-12-05 11:51           ` Peter C. Chapin
2008-12-05 13:09           ` Martin Krischik
2008-12-05 15:15             ` Hyman Rosen
2008-12-06 13:26             ` Peter C. Chapin
2008-12-05 16:37           ` Keith Thompson
2008-12-04 22:19       ` Hyman Rosen
2008-12-05  9:03       ` Georg Bauhaus
2008-12-04 22:30 ` Randy Brukardt
2008-12-04 22:57   ` Hyman Rosen
2008-12-05 16:42     ` Keith Thompson
2008-12-05 16:57       ` Hyman Rosen
2008-12-05 20:20         ` Keith Thompson
2008-12-05 20:59           ` Adam Beneschan
2008-12-06 22:53             ` Hyman Rosen
2008-12-06 23:15               ` Gary Scott [this message]
2008-12-08 15:39                 ` Hyman Rosen
replies disabled

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