Newsgroups: comp.parallel.pvm
From: Matthieu Exbrayat <exbrayat@lisiflory.insa-lyon.fr>
Subject: Re: pvm: thread-safe ?
Organization: C.I.S.M.  Universite Claude Bernard Lyon 1 / INSA de Lyon
Date: Tue, 21 Oct 1997 09:48:05 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <344C5E35.D7607330@lisiflory.insa-lyon.fr>

I tried to run a similar case under Linux (2.0.30), and it seems not to
work :
I have 3 threads, one sending when needed, one waiting for new data, and
one making internal work. The 2 pvm threads are mutually exclusive, in
the way that sending (including packing) and receiving (including
unpacking) are protected one from the other by a mutex. But when
receiving and sending are numerous, the system is most of time crashing.
I use pvm 3.4.beta4, and pthe proven's pthreads library.
Well, I could propose that, as long as pvm is not compiled with the
pthread library, there can some unpredictable mallocs. I could also
suppose that, due to the fact that pvm uses the IPC functionnalities,
while pthreads seem not to support them, there could be nasty
interractions.

Does anyone know if I am right?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Matthieu EXBRAYAT	   |						~
~ LISI - INSA Lyon	   | e-mail : exbrayat@lisiflory.insa-lyon.fr	~
~ Bat 401		   |						~
~ 20, av. A. Einstein	   | tel : (33) 72 43 84 67			~
~ 69621 Villeurbanne Cedex | 						~
~-----------------------------------------------------------------------~
~	url : http://www.insa-lyon.fr/People/LISI/matthieu		~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

