readerwriter
Class ThreadReaderWriter

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--readerwriter.ThreadReaderWriter
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ThreadReaderWriterFifo, ThreadReaderWriterPriority

public class ThreadReaderWriter
extends java.lang.Thread


Field Summary
static int READER
           
static int UNKNOW
           
static int WRITER
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThreadReaderWriter(java.lang.String myName, int behaviour)
           
 
Method Summary
protected  int getBehaviour()
           
 java.lang.String toString()
           
 
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, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOW

public static final int UNKNOW

WRITER

public static final int WRITER

READER

public static final int READER
Constructor Detail

ThreadReaderWriter

public ThreadReaderWriter(java.lang.String myName,
                          int behaviour)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Thread

getBehaviour

protected int getBehaviour()