Newsgroups: comp.parallel.pvm
From: "Vitor S. P. Oliveira" <si10917@ci.uminho.pt>
Reply-To: si10917@ci.uminho.pt
Subject: Re: shared in PVM
Organization: Universidade do Minho
Date: Thu, 31 Oct 1996 01:04:55 +0000
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <3277FB37.BEB@ci.uminho.pt>

Cosso Nicosia wrote:
> 
> We are two italian students from Pisa University.
> We have some problem to make a variable shared between more tasks PVM
> so that the processes can read and increase it.
> We have thought to use the pvm_insert(), but how it possible to solve
> the mutual exclusion?
> 
> Thre is a way to share a array between more tasks PVM, excluding to
> use a  message passing?
> Thanks for our attention.
> 
> Massimo, Massimiliano.

Hi there!

Maybe you should make another process to implement a variable 
'server' and make the other processes comunicate with it thru
normal message passing. To implement mutual exclusion you could 
use messages to LOCK, UNLOCK, GET and SET.
You could even use this server for more then one variable, indicating
in the messages the variable you wanted to deal with.

Hope this helps :) 
--



