Newsgroups: comp.parallel.pvm
From: Norbert Sensen <sensen@uni-paderborn.de>
Subject: pvm: thread-safe ?
Organization: University of Paderborn
Date: Thu, 16 Oct 1997 13:48:50 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <3445FF22.313F8E2D@uni-paderborn.de>

Hallo,
i've just read your old message in comp.parallel.pvm:
-------------------------------------
Subject:      Threads and PVM 3.4beta?
From:         wrankin@duke.edu (William T. Rankin)
Date:         1997/07/30
Message-Id:   <5rnjl8$5fi$1@news.duke.edu>
Distribution: world
Organization: Duke University EE Dept.; Durham, NC
Newsgroups:   comp.parallel.pvm
[Fewer Headers]



Firstoff, thanks to the PVM group for all their efforts in brining out
3.4.  I am downloading it now and will try to give some feedback on any
problems I run into, as well as the new features (I am *really* looking
forward to using the message-handler features :-)

(And now that I've buttered them up enough... ;-)

The PVM homepage advertized that thread safty issues would be addressed
in 3.4, but I noticed that they are not on the 3.4-beta3 brag sheet.
Is there any update on when/if we can expect a thread safe PVM 3.4?

In the meantime, will the following workarounds "work"?

  - I assume that I can have PVM in a multi-threaded program as long as
    all PVM calls are performed by the same thread.

  - I can take the approach of Adam Ferrari up at Virginia (is
    Adam still there?) w/ TPVM and wrap all my PVM calls with mutex
    locks.  However, can I have *one* simultanious pvm_send()  with
    a pvm_recv()? ..  or must the receive and send calls also be
    mutually exclusive with each other?

Any other suggestions would be appreciated.

Thanks for all the help,

-----------------------------------

Unfortunately i have not found an answer to your question.
Now i have roughly the same problem you have:
I want to use pvm (3.3.11) with threads. So i know that
pvm is not thread-safe. But what does it mean exactly ?

Can i use threads and pvm together, if i ensure that
from each process with two threads always only one uses
pvm-commands, the other thread does not use pvm at all
and communicates with the other thread per shared memory
and semaphers.

Does this work togehter with pvm or does not thread-safe
means that even this relatively simple use is not allowed?

Can you (or someone else) help me ?

Thank you very much,

Norbert Sensen
-- 
------------------------------------------------------------------
Norbert Sensen            
University of Paderborn       office: F2.411
Dept. of Computer Science     phone: +49 +5251 60-6728
Fuerstenallee 11              e-mail: sensen@uni-paderborn.de
------------------------------------------------------------------

