Subject: RE: SDL-News: Communication b/w process instances
From: gopalvr (gopalvr#future.futsoft.com)
Date: Wed Jul 01 1998 - 23:34:00 GMT
The originator of this message is responsible for its content.
-----From gopalvr <gopalvr#future.futsoft.com> to sdlnews -----
Hello Guru,
The answer is both Yes and No. This is so because, the parent process
need not route all the signals (messages) from the Instances, but it
should do the following at startup (After the child process Instances are
created).
The Parent process should send the process ID of Instance1 to the Process
Instance2 and that of Instance2 to Process Instance1. After this has been
done by the parent process, the individual Process Instances know the
PIDs of the other instance with which it wants to communicate.
Regards
Rajagopal
FutureSoftware Pvt Ltd
Chennai
India
-----Original Message-----
From: sdlnews-owner [SMTP:sdlnews-owner#sdl-forum.org]
Sent: Wednesday, July 01, 1998 8:23 AM
To: gprasad
Cc: sdlnews
Subject: RE: SDL-news: Communication b/w process instances
The originator of this message is responsible for its content.
-----From Louis.Verhaard#gambro.com to sdlnews -----
Hello Guru,
Martin v. Loewis wrote:
> > Is there a way to send and receive signals between process instances
> of
> > the same set (The Process instances in the set would be created by
> a
> > monitor process) ?
>
> It is certainly possible to send signals to a process of your instance
> set. If you have a PId, you can use that. If not, you can output to
> the process, in which case an arbitrary instance gets it (which might
> be the sender).
>
-----
Note that if you have signals that are only sent to instances of the
same set,
they have to be mentioned explicitly in the valid input signal set of
the process.
For example if a process in set P wants to send signal HelloBrother to
another process
in the same set, and HelloBrother cannot be sent by other processes, P's
diagram
header should look like:
process P (0, ); signalset HelloBrother;
otherwise you will get semantic errors. (I also struggled once with this
problem...)
Louis Verhaard
-----End text from Louis.Verhaard#gambro.com to sdlnews -----
For help, email "majordomo#sdl-forum.org" with the body of your email as:
help
or (iff this does not answer your question) email:
owner-sdlnews#sdl-forum.org
-----End text from gopalvr <gopalvr#future.futsoft.com> to sdlnews -----
For help, email "majordomo#sdl-forum.org" with the body of your email as:
help
or (iff this does not answer your question) email: owner-sdlnews#sdl-forum.org
This archive was generated by hypermail 2a23 : Sun Jun 16 2013 - 10:41:40 GMT