vishnu.sharing
Class ShareManager

java.lang.Object
  extended by vishnu.sharing.ShareManager
All Implemented Interfaces:
java.util.Observer

public class ShareManager
extends java.lang.Object
implements java.util.Observer

problemas: se encola si no hay nadie trabajando?

Author:
Hernan Rancati Controls access to shared resource for writing and reading. The access policy is: -When someone has write access to a resource, no one else can have any type of access. -When no one has write access to a resource, can be accessing in read-only mode any amount threads.
 

Constructor Summary
ShareManager()
           
 
Method Summary
static ShareManager get()
           
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShareManager

public ShareManager()
Method Detail

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

get

public static ShareManager get()