Newsgroups: comp.parallel.pvm
From: Tom Goodale <goodale@aei-potsdam.mpg.de.nospam>
Subject: Re: passing message between two unrelated processes
Organization: Max-Plank-Institut Fur Gravitationphysik
Date: Fri, 17 Oct 1997 10:48:14 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <3447345E.41C6@aei-potsdam.mpg.de.nospam>

Julian Zhao wrote:
> 
> Hi,
> 
> I am MPI user and new in PVM. Now I start two processes by pvm, say A
> and B, separately. In order to pass a message from process A to process
> B, A need to know B's process id (tid). My question is how A gets this
> information to call pvm_send( int tid, int message)?
> 
> Thank you!

I can think of three ways, 'though there are probably more:

Spawn A and B from a master process, which can then tell A and B each
others tids.

Use the group server and have A and B join the same group.

(Ugly) Find out the tids of the other tasks in the virtual machine, and
determine (somehow) which one B is.  

I hope this helps,

Tom

