Newsgroups: comp.parallel.pvm
From: wjiang@apollo.hp.com (Weicheng Jiang)
Subject: Re: Spawning from console - how to do it.
Organization: Hewlett-Packard Company, Chelmsford, MA
Date: Thu, 19 Dec 1996 19:27:03 GMT
Message-ID: <E2oE13.9GC@apollo.hp.com>

In article <58l3et$pdm@cnn.nas.nasa.gov>,  <eblosch@world.northgrum.com> wrote:
>The only alternative I can think of is to have every process join a group 
>and test on the instance number---if it's 0 then the process must be the
>host.  But this approach would fail (wouldn't it?) if you were running two 
>copies of this program at the same time - the host for the 2nd program, 
>as it called pvmfjoingroup, would get an instance number > 0.  Or does the
>group server take care of that?

You can have more than one group in PVM. So the 2nd program should use
a different group name when calling pvmfjoingroup(). You can have your 
program generate a random number as the group name, for example.

-- 
Weicheng Jiang, Ph.D.            Internet Technology Lab
PVM Specialist                   Internet Technology Group
Tel: 508-436-4613                Hewlett-Packard Company

