1 // Test basic thread creation and wait/notify functionality.
2 // Origin: Bryce McKinlay <bryce@albatross.co.nz>
4 public class Thread_Wait implements Runnable
6 public static void main(String args[])
13 System.out.println("creating thread");
14 Thread t = new Thread(this);
23 System.out.println("exception occurred: " + x);
28 System.out.println("notifying other thread");
35 System.out.println ("new thread running");
44 System.out.println("exception occurred: " + x);
47 System.out.println ("thread notified okay");