Newsgroups: comp.parallel.pvm
From: eblosch@world.northgrum.com
Subject: Spawning from console - how to do it.
Organization: NAS/NASA Ames Research Center
Date: 11 Dec 1996 01:40:45 GMT
Message-ID: <58l3et$pdm@cnn.nas.nasa.gov>

My PVM program is host-worker style but there's only 1 program. 
The first process to start is the host and it starts the others.  All of
then call pvmfparent to figure out if they are host or worker.  

Is it true that I can't spawn from the PVM/XPVM console because the 
parent won't be PVMNOPARENT, and if so, what's the alternative?

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?

Ed Blosch

-- 


-------------------------------------
|  Edwin Blosch

