Class LamportMutex

java.lang.Object
  |
  +--Process
        |
        +--LamportMutex
All Implemented Interfaces:
Lock, MsgHandler

public class LamportMutex
extends Process
implements Lock


Constructor Summary
LamportMutex(Linker initComm)
           
 
Method Summary
 void handleMsg(Msg m, int src, java.lang.String tag)
           
 void releaseCS()
           
 void requestCS()
           
 
Methods inherited from class Process
broadcastMsg, isNeighbor, myWait, receiveMsg, sendMsg, sendMsg, sendMsg, sendMsg, sendToNeighbors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface MsgHandler
receiveMsg
 

Constructor Detail

LamportMutex

public LamportMutex(Linker initComm)
Method Detail

requestCS

public void requestCS()
Specified by:
requestCS in interface Lock

releaseCS

public void releaseCS()
Specified by:
releaseCS in interface Lock

handleMsg

public void handleMsg(Msg m,
                      int src,
                      java.lang.String tag)
Specified by:
handleMsg in interface MsgHandler
Overrides:
handleMsg in class Process