gnu.x11.test
Class Sync
java.lang.Object
gnu.app.Application
gnu.x11.Application
gnu.x11.test.Graphics
gnu.x11.test.Sync
- All Implemented Interfaces:
- java.lang.Runnable
public class Sync
- extends Graphics
- implements java.lang.Runnable
Test multi-threading and synchronization.
- See Also:
-
screenshot,
text output,
help output
Field Summary |
static java.util.Random |
random
|
java.lang.Thread |
thread
|
Constructor Summary |
Sync(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
random
public static final java.util.Random random
thread
public java.lang.Thread thread
Sync
public Sync(java.lang.String[] args)
dispatch_event
public void dispatch_event()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
main
public static void main(java.lang.String[] args)