|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcurzez.test.ThreadSafety
A little test program to test Jcurzez thread safety.
Nested Class Summary | |
private static class |
ThreadSafety.ClockThread
Writes time at position x , y |
Field Summary | |
private static java.text.SimpleDateFormat |
df
To display the date like I want. |
private static int |
height
Height of the screen. |
private static Screen |
screen
The screen. |
private static java.lang.ThreadGroup |
threads
The thread group that owns all the threads this test will create. |
private static int |
width
Width of the screen. |
Constructor Summary | |
ThreadSafety()
|
Method Summary | |
static void |
main(java.lang.String[] args)
Test thread safety by having multiple threads write on the screen. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.ThreadGroup threads
private static final java.text.SimpleDateFormat df
private static final Screen screen
private static final int width
private static final int height
Constructor Detail |
public ThreadSafety()
Method Detail |
public static void main(java.lang.String[] args) throws java.lang.InterruptedException
java.lang.InterruptedException
- raised if the sleep is interrupted.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |