Newsgroups: comp.parallel.pvm
From: john@elroy.jpl.nasa.gov (John Wright)
Subject: Host or Subnet Locking - How?
Keywords: lock, semaphore
Organization: Image Analysis Systems Group, JPL
Date: 10 Aug 1994 18:25:13 GMT
Message-ID: <32b629$n6p@elroy.jpl.nasa.gov>

Hi,

I am new to C++ and PVM but I have been doing a simple
encapsulation of sorts.  One of the features I'd like to
be able to implement is the ability for a user to lock
other PVM tasks (or at least those spawned under the C++
classes I'm creating) out of a host or set of hosts.
Essentially, I'd like to make it possible for a user to
gain exclusive access to a host such that no other users
could launch subtasks there.  Of course, this would in no
way affect console or rlogin users, only distributed tasks.

I could do all pvm_spawns on specific hosts and precede them
with a semaphore check but this forces all the host selection
on me.  I think it might be possible to have each user have
their own set of pvm demons which are only running on the
accessible machines but I don't know how to do this.  Any
suggestions or approaches or has someone already done this?
I'd appreciate any help I can get.  Thanks.

John
-----------------------------------------------------------------------------
John R. Wright
Jet Propulsion Laboratory
Internet: john@tone.jpl.nasa.gov



