Newsgroups: comp.parallel.pvm
From: Krishnan Subramaniam <krishnan@apple.com>
Reply-To: krishnan@apple.com
Subject: Re: Asynchronous Messaging in PVM
Organization: Apple Computer, Inc.
Date: Thu, 03 Jul 1997 16:46:22 -0700
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <33BC39C4.3CCD@apple.com>

Yes - certainly. You may have problems with running select on the
STDIN_FILENO but you can surely use select() with the pvm fd's. In fact
if you link to the static PVM libs I think you have access to pvm_rfds,
and pvm_wfds or something very similar to get read and write fd sets
alone.
    
Krishnan.


> To handle asynchronous messaging between a parent and its spawned 
> children I'm writing a simple event loop that polls for messages using 
> pvm_nrecv.  On the parent, however, I'm also polling for input on STDIN, 
> so I have to add a select call.  Unfortunately, I can't make a blocking 
> call on either one because they may starve each other.  Is it possible 
> to use pvm_getfds to do a blocking select on all of pvms fds plus 
> STDIN_FILENO, and then when select pops to check the fds and call 
> pvm_nrecv if any fds other than STDIN_FILENO are set?
> 
> Many thanks,
> 
> Joseph Bell

