comp.lang.ada
 help / color / mirror / Atom feed
From: agate!linus!linus.mitre.org!giddings.mitre.org!user@ucbvax.Berkeley.EDU   (Victor Giddings)
Subject: Re: Using Global Variables
Date: 28 Sep 92 15:53:39 GMT	[thread overview]
Message-ID: <vtg-280992114417@giddings.mitre.org> (raw)

In article <1992Sep22.201420.25962@swlvx2.msd.ray.com>, lms@swl.msd.ray.com
(LEE MARDEN) wrote:
> 
> 
>   At the risk of being flamed for continuing to beat a dead horse, could some
> summarize the methods available (good and bad) for using shared memory.  I
> just started to monitor comp.lang.ada and have a specific problem I'm trying
> to solve.  Here goes:  I have a 4D/240 Power series Silicon Graphics computer
> running Irix 4.0.1 (Unix) and the Verdix Ada compiler (on order).  The comput
er
> has 4 processors.  The plan is to reuse code as much as possible so I'm 
> stuck with one processor running C, another Fortran and the other two Ada.
> Each processor needs to communicate with the others.  I'm not sure on the
> amount of data, but my first guess would be tons(>1k variables).  My initial
> investigate has only lead me to the conclusion that I would have to write
> some Ada wrappers around the C routines (shmctl, shmop, shmget) to control
> a shared memory chunk, 

We actually experimented with this with some success (although I still
think it was a bad idea).  We did, however, have unexplained intermittent
crashes.  We speculated that the shmat (using shmaddr:= 0) was returning an
address that the run-time system was re-using for a dynamic allocation. 
Any SGI and/or Verdix gurus wish to comment?

> and that all I would get is a pointer to the data
> space.  That would make data access very clumsy. 
The indirection can be accomplished using one qualification, e.g.
Global_Pool.Data_Element.  Doesn't strike me as any more clumsy than trying
to maintain the data space in the first place.  :-)

> I've heard of some Pragmas
> on other systems that allow you to specify that an entire package of variable
s
> be shared, and utilities to perform the maintance thereof.  I hope that's
> enough info for someone to respond.  If not, let me know and I'll elaborate
> (no pun intended).
> 
>  AdvThanksance, Lee Marden
>  
> -- 
>   AdvThanksance,
> 
>   Lee S. Marden, lms@swlray.msd.ray.com
>   Raytheon Company, Missile Systems Division, Tewksbury, MA 01876

             reply	other threads:[~1992-09-28 15:53 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-09-28 15:53 Victor Giddings [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-09-29 15:05 Using Global Variables Charles H. Sampson
1992-09-28 20:56 crispen
1992-09-28 14:51 Jeffrey Stewart
1992-09-28 12:52 crispen
1992-09-25 22:58 netcomsv!iscnvx!news
1992-09-25 21:16 Charles H. Sampson
1992-09-25 17:50 Charles H. Sampson
1992-09-25 17:36 Charles H. Sampson
1992-09-25 16:30 David A. Hasan
1992-09-25 14:01 crispen
1992-09-24 20:02 netcomsv!iscnvx!news
1992-09-24 18:10 crispen
1992-09-24  6:51 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!rpi!utcsri!geac!torsqnt!uuno
1992-09-24  3:52 Michael Feldman
1992-09-23 21:13 haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.ed
1992-09-23 19:11 Charles H. Sampson
1992-09-23 15:01 crispen
1992-09-23 14:26 munnari.oz.au!ariel!ucsvc.ucs.unimelb.edu.au!phillip.edu.au!x01233
1992-09-23 14:19 crispen
1992-09-23 13:24 wupost!spool.mu.edu!olivea!bu.edu!inmet!inmet!shafer
1992-09-23  2:44 Holmes S. Liao
1992-09-22 20:14 LEE MARDEN
1992-09-22 17:08 dog.ee.lbl.gov!hellgate.utah.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.co
1992-09-22 14:54 van-bc!ubc-cs!destroyer!caen!spool.mu.edu!umn.edu!The-Star.honeywell.com!
1992-09-22 12:19 Robert Firth
1992-09-21 21:30 fred j mccall 575-3539
1992-09-21 20:58 cis.ohio-state.edu!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu
1992-09-21 20:37 Michael Feldman
1992-09-21 20:36 Michael Feldman
1992-09-21 20:31 Michael Feldman
1992-09-21 19:23 Robert Firth
1992-09-21 18:32 agate!linus!linus.mitre.org!mwvm.mitre.org!M19481
1992-09-21 16:51 Doug Smith
1992-09-21 14:43 haven.umd.edu!darwin.sura.net!spool.mu.edu!umn.edu!The-Star.honeywell.com
1992-09-21 11:49 cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!wellerd
1992-09-21  8:10 paul goffin
1992-09-21  4:08 cis.ohio-state.edu!news.sei.cmu.edu!lph
1992-09-19  2:28 Michael Feldman
1992-09-18 23:52 Charles H. Sampson
1992-09-18 22:50 Robert I. Eachus
1992-09-18 13:12 crispen
1992-09-17 18:34 Charles H. Sampson
1992-09-17 14:24 kronos.arc.nasa.gov!iscnvx!news
1992-09-16 17:47 agate!linus!linus.mitre.org!mwvm.mitre.org!M19481
1992-09-16 15:26 Charles H. Sampson
replies disabled

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