[comp.sys.transputer] Meiko CSN question

spahni@cui.unige.ch (SPAHNI Stephane) (12/06/90)

I would like to make two programs communicate through the CSN functions of
Meiko. The problem is when I start them separately: if I use only one par
file with the two programs started at the same time, it works fine. But when
I start them separately, the "csn_lookupname" called by the "client" never
returns ! Note that one process in on the host computer (a Sun), and the
second one is on the MEIKO board. Is it possible ? What am I making wrong ?

Stephane Spahni
University of Geneva

MHS: spahni@cui.unige.ch
UUCP: ...!mcsun!chx400!cui!spahni
BITNET: spahni@cgeuge51.bitnet

cca04@phsun1 (P.J. Mitchell) (12/10/90)

From article <4050@cui.unige.ch>, by spahni@cui.unige.ch (SPAHNI Stephane):
> I would like to make two programs communicate through the CSN functions of
> Meiko. The problem is when I start them separately: if I use only one par
> file with the two programs started at the same time, it works fine. But when
> I start them separately, the "csn_lookupname" called by the "client" never
> returns ! Note that one process in on the host computer (a Sun), and the
> second one is on the MEIKO board. Is it possible ? What am I making wrong ?
> 
> Stephane Spahni
> University of Geneva

Stephane,

   I'm afraid what you ask is not possible. Each "job" initiated by mrun is
independant of any others, so your two processes can only communicate via
the CSN if they are in the same jobs. Otherwise there could be chaos with
one user's job servicing requests from another's because they happen to
have used the same transport names.

   Your csn_lookupname never returns because no process in the same job has
registered a port with the requested name.

   Why is starting the two processes simultaneously a problem ?
--
Paul Mitchell (CMA#136(18) MAG#65715 DoD#0145) | Computer Centre,
JANET:  p.j.mitchell@uk.ac.keele.seq1          | Keele University, Keele,
USENET: p.j.mitchell@seq1.keele.ac.uk          | Staffordshire, ST5 5BG, U.K.
BITNET: p.j.mitchell%seq1.keele.ac.uk@ukacrl   | (+44 or 0)782 621111 ext 3302