Newsgroups: comp.parallel.pvm
From: Graham Nash <gnash@ncube.com>
Subject: Re: How to recognize the console process
Organization: Integratek
Date: Thu, 25 Apr 1996 15:58:39 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <DqFDps.2wL@ncube.com>

What I would do is use the group mechanism. Let all your tasks join a group and
then the "first" one is simply that with rank 0. This way you exclude all
knowledge of bogus tasks such as the console (and the group server) and any
others that might be floating around - some strange systems even have tasks
that are used to help spawn tasks.
Be careful, though, groups don't always work the way you expect, so it probably
helps to know how many tasks you are creating. A pvm_barrier with this number
followed by a pvm_freezegroup generally renders them fairly safe.

Hope this helps

Graham Nash


