1 public class Thread implements Runnable {
2 private boolean finished;
4 private boolean daemon;
11 public Thread(Runnable r) {
20 private static void staticStart(Thread t) {
25 public static native void yield();
31 private native void nativeJoin();
33 public native static void sleep(long millis);
42 private native void nativeCreate();
44 public final boolean isAlive() {
45 return !this.finished;
48 public native ThreadLocalMap getThreadLocals();
50 public final synchronized void setDaemon(boolean daemon) {
51 /*if (vmThread != null)
52 throw new IllegalThreadStateException();
57 public static Thread currentThread()
59 System.out.println("Unimplemented Thread.currentThread()!");