edu.vt.marian.uip
Class server_uip_call_in_thread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--edu.vt.marian.uip.server_uip_call_in_thread

public class server_uip_call_in_thread
extends java.lang.Thread

class name: server_uip_call_in_thread class description: this thread will pass the rpc_function to the server_uip_thread to send to corresponding client_uip, using thread can avoid possible deadlock caused by reader_writer_mutex when a thread is killed while it's executing a reader or writer method, this can also avoid blocking the caller when it takes long time for the function to be passed to the client_uip

uses the services of class(es): designer(s): Jianxin Zhao (jxzhao@csgrad.cs.vt.edu) implementator(s): finished time: known bugs: JDK version: 1.1.5 side effects:


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
server_uip_call_in_thread(int client_id, rpc_function rf, server_uip_thread sut, edu.vt.marian.common.Debug debug)
          method description: this constructor will create a server_uip_call_in _thread object based on the information specified in the parameters uses the services of class(es): input parameter(s): client_id --- specifies which client_uip to send this function rf -- the function need to be sent to the client_uip sut -- the function and the client_id will be passed to this object to send to corresponding client_uip debug -- used for debugging output parameter(s): none return value: none synchronization consideration: none
 
Method Summary
 void run()
          method description: this method of the thread will pass the function to the server_uip_thread to send to corresponding client_uip uses the services of class(es): input parameter(s): none output parameter(s): none return value: none synchronization consideration: none
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

server_uip_call_in_thread

public server_uip_call_in_thread(int client_id,
                                 rpc_function rf,
                                 server_uip_thread sut,
                                 edu.vt.marian.common.Debug debug)
method description: this constructor will create a server_uip_call_in _thread object based on the information specified in the parameters

uses the services of class(es): input parameter(s): client_id --- specifies which client_uip to send this function rf -- the function need to be sent to the client_uip sut -- the function and the client_id will be passed to this object to send to corresponding client_uip debug -- used for debugging output parameter(s): none return value: none synchronization consideration: none

Method Detail

run

public void run()
method description: this method of the thread will pass the function to the server_uip_thread to send to corresponding client_uip

uses the services of class(es): input parameter(s): none output parameter(s): none return value: none synchronization consideration: none

Overrides:
run in class java.lang.Thread