public class Thread {
+ /* Don't allow overriding this method. If you do, it will break dispatch
+ * because we don't have the type information necessary. */
+ public boolean threadDone;
- public void start(int mid) {
- remotethreadstart(mid);
- }
+ public Thread() {
+ threadDone = false;
+ }
- public native static void sleep(long millis);
+ public static native void yield();
- public void run() {
+ public final native void join();
- }
-
- public native void remotethreadstart(int mid);
+ public final native void start(int mid);
+
+ public native static void sleep(long millis);
+
+ public void run() {
+ }
}