1 public class Thread implements Runnable {
3 private boolean finished;
5 private boolean daemon;
13 threadId = Thread.id++;
21 public Thread(Runnable r) {
26 public Thread(Runnable r, String n)
37 private static void staticStart(Thread t) {
42 public static native void yield();
48 private native void nativeJoin();
50 public native static void sleep(long millis);
59 private native void nativeCreate();
61 public final boolean isAlive() {
62 return !this.finished;
65 public native ThreadLocalMap getThreadLocals();
67 public final synchronized void setDaemon(boolean daemon) {
68 /*if (vmThread != null)
69 throw new IllegalThreadStateException();
74 public static Thread currentThread()
76 System.out.println("Unimplemented Thread.currentThread()!");
80 public static Map getAllStackTraces() {
81 System.out.println("Unimplemented Thread.getAllStackTraces()");