Newsgroups: comp.parallel.pvm
From: demos@cs.tu-berlin.de (Alexander Weidt)
Subject: Re: How to wait for messages without making Busy-Waiting
Organization: Technical University of Berlin, Germany
Date: 2 Dec 1994 14:43:12 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Message-ID: <3bnbq0$2eh@news.cs.tu-berlin.de>

hermes@lsi.usp.br (Hermes Senger) writes:

>I have just started my learning in PVM. I would like to make some 
>kind of distributed scheduler using PVM. More precisely, I need to 
>implement a task which waits for messages from other PVM taks. When
>a message arrives, the task must start a local aplication task, and 
>wait for another message, but without making busy-waiting ( it must 
>not to spend cpu ). 

A call to pvm_recv() will suspend execution until a matching message
has arrived.  At which point you can dispatch the local task.

(Unfortunately, the current version of PVM is not able to asynchronously
notify a task of the arrival of a message.  (I have offered to integrate
such a functionality into PVM, but not yet received any feedback from the
PVM developers).)

Best regards, Alex.

