Newsgroups: comp.sys.transputer
From: amd2@ukc.ac.uk (A.M.Douglas)
Subject: CS-Tools and forking processes - help!
Organization: University of Kent at Canterbury, UK.
Date: Tue, 19 Jul 94 15:15:19 GMT
Message-ID: <471@beech.ukc.ac.uk>

Hello,

I've asked this question before, I think, and got no answers.
But I'll try again.

Essentially, I'm using CS-Tools C, to implement an interpreter
for a parallel language.  What I want to do is implement some
kind of spawning of processes from within my interpreter.  AT
the moment, I'm doing this on my host machine (an old Sun3),
using fork().

Now, each of these interpreters needs a private transport, to
be able to talk to some processes running on a transputer surface,
which implement a distributed shared data structure.  But
I don't seem to able to do this.

I've approached the problem in a number of ways, all of which 
don't work.  For instance, I've tried forking, and then performing
csn_init() and csn_open(...) in the child process, which would
seem a reasonable approach.  I've also tried csn_close()-ing the
transport, forking, and then performing csn_open() on both threads,
but this doesn't work either.

Has anybody approached a similar problem?  Surely, some kind of
dynamic process creation must be possible - infact, its not so
much the proces creation thats the problem, it the dynamic
communication between a number of processes thats causing the problem.

Any help will be most gratefully received.

Thanks,

Andrew Douglas


