Newsgroups: comp.parallel.pvm
From: "Joseph A. Bell" <jobell@cs.tamu.edu>
Reply-To: jobell@cs.tamu.edu
Subject: Asynchronous Messaging in PVM
Organization: Texas A&M University
Date: Thu, 03 Jul 1997 10:04:43 -0500
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <33BBBF8B.5652@cs.tamu.edu>

Hi.

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

