1 public class Thread implements Runnable {
3 private boolean finished;
5 private boolean daemon;
12 threadId = Thread.id++;
20 public Thread(Runnable r) {
29 private static void staticStart(Thread t) {
34 public static native void yield();
40 private native void nativeJoin();
42 public native static void sleep(long millis);
51 private native void nativeCreate();
53 public final boolean isAlive() {
54 return !this.finished;
57 public native ThreadLocalMap getThreadLocals();
59 public final synchronized void setDaemon(boolean daemon) {
60 /*if (vmThread != null)
61 throw new IllegalThreadStateException();
66 public static Thread currentThread()
68 System.out.println("Unimplemented Thread.currentThread()!");