comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@bix.com (Tom Moran)
Subject: Re: Spawning a subprocess and communicating with it.
Date: 1998/10/12
Date: 1998-10-12T00:00:00+00:00	[thread overview]
Message-ID: <36223ffc.5994614@SantaClara01.news.InterNex.Net> (raw)
In-Reply-To: F3740247C2BED111A0AE00805FEA9C92017FFD15@pwflml02.pwfl.com

>I want to write an Ada program that can start up another Ada
>    program as a subprocess, coprocess or whatever is the common Unix
>    paradigm. (I just need it running as a separate, stand-alone
>    executable image whose execution need go on no longer than that of
>    the parent program that initiated it.) When the subprocess is up
>    and running, I need to trade messages back and forth (character
>    strings are sufficient) between the two processes.
This sounds like you could have your main Ada program start a task
which would call the main procedure in the other program, and then
they could trade information via a (protected) buffer or something.
  But other messages in this thread suggest that the 'subprogram' may
in fact be running on another machine (in which case as noted the
Distributed Annex would be appropriate) but it is already in existence
and cannot be changed and does not use the Distributed Annex for its
communication.  That implies the programs need to talk via the OS.
Unless the existing program(s) use some OS communication method that
is transparent as to whether one, or more, CPUs are involved, it sure
sounds like you are going to have to write some glue code to abstract
away the CPU count.  So this is really a language independent  OS
question.  
  Or did I miss something?




  parent reply	other threads:[~1998-10-12  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-01  0:00 Spawning a subprocess and communicating with it Condic, Marin D.
1998-10-02  0:00 ` dennison
1998-10-02  0:00 ` Rick Stikkers
1998-10-05  0:00 ` John McCabe
1998-10-12  0:00 ` Tom Moran [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-10-05  0:00 Condic, Marin D.
1998-10-06  0:00 ` dennison
1998-10-06  0:00 ` Robert L. Spooner
1998-10-07  0:00 ` John McCabe
1998-10-08  0:00   ` dennison
1998-10-07  0:00 ` Jerry van Dijk
1998-10-07  0:00 Condic, Marin D.
1998-10-08  0:00 ` dennison
1998-10-08  0:00 ` Jerry van Dijk
1998-10-08  0:00 ` dennison
1998-10-08  0:00 Condic, Marin D.
1998-10-09  0:00 ` alan walkington
1998-10-09  0:00 Condic, Marin D.
1998-10-09  0:00 Condic, Marin D.
1998-10-13  0:00 ` Robert I. Eachus
1998-10-12  0:00 Condic, Marin D.
1998-10-13  0:00 ` Pascal Obry
1998-10-13  0:00 Condic, Marin D.
1998-10-13  0:00 ` Scott Ingram
replies disabled

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