From: bdemsky Date: Fri, 14 Sep 2007 09:38:26 +0000 (+0000) Subject: start real remote thread X-Git-Tag: preEdgeChange~442 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=73bbc7faefe79616919fa90400eb40aaabd1442f;p=IRC.git start real remote thread --- diff --git a/Robust/src/Tests/remotethreadtest.java b/Robust/src/Tests/remotethreadtest.java index db58452b..e9c9f2a6 100644 --- a/Robust/src/Tests/remotethreadtest.java +++ b/Robust/src/Tests/remotethreadtest.java @@ -1,14 +1,22 @@ public class RemoteThread extends Thread { - public RemoteThread() { + public RemoteThread() { + } + + public static void main(String[] st) { + int mid = (128<<24)|(200<<16)|(9<<8)|26; + RemoteThread t =null; + atomic { + t= global new RemoteThread(); } + System.printString("Starting"); + t.start(mid); + System.printString("Finished"); + //this is ugly... + while(true) ; + } - public static void main(String[] st) { - int mid = 127; - RemoteThread t =null; - atomic { - t= global new RemoteThread(); - } - t.start(mid); - } + public int run() { + System.printString("Remote machine"); + } }