jcurzez.test
Class ThreadSafety.ClockThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--jcurzez.test.ThreadSafety.ClockThread
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ThreadSafety

private static class ThreadSafety.ClockThread
extends java.lang.Thread

Writes time at position x, y


Field Summary
private  java.util.Date d
           
private  long t1
           
private  int x
           
private  int y
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private ThreadSafety.ClockThread(int x, int y)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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
 

Field Detail

t1

private long t1

d

private final java.util.Date d

x

private final int x

y

private final int y
Constructor Detail

ThreadSafety.ClockThread

private ThreadSafety.ClockThread(int x,
                                 int y)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread


Send me an email