diff options
author | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-15 15:33:23 +0000 |
---|---|---|
committer | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-08-15 15:33:23 +0000 |
commit | 1be77ea1628196d60a1d78d8748c2584019287f9 (patch) | |
tree | 0d603b99106e22855fafd93ea797dc65f47bf1ee /libjava/testsuite/libjava.lang/Thread_Wait.java | |
parent | ad1b99fa4f13bf490ac74209b0850291849c17de (diff) |
This commit was manufactured by cvs2svn to create tagbounded-pointers-merge-20000811
'bounded-pointers-merge-20000811'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/bounded-pointers-merge-20000811@35723 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.lang/Thread_Wait.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/Thread_Wait.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/libjava/testsuite/libjava.lang/Thread_Wait.java b/libjava/testsuite/libjava.lang/Thread_Wait.java deleted file mode 100644 index 5ca12ed5d4b..00000000000 --- a/libjava/testsuite/libjava.lang/Thread_Wait.java +++ /dev/null @@ -1,49 +0,0 @@ -// Test basic thread creation and wait/notify functionality. -// Origin: Bryce McKinlay <bryce@albatross.co.nz> - -public class Thread_Wait implements Runnable -{ - public static void main(String args[]) - { - new Thread_Wait(); - } - - public Thread_Wait() - { - System.out.println("creating thread"); - Thread t = new Thread(this); - t.start(); - - try - { - Thread.sleep(100); - } - catch (Exception x) - { - System.out.println("exception occured: " + x); - } - - synchronized (this) - { - System.out.println("notifying other thread"); - notify(); - } - } - - public void run() - { - System.out.println ("new thread running"); - synchronized (this) - { - try - { - wait(); - } - catch (Exception x) - { - System.out.println("exception occured: " + x); - } - } - System.out.println ("thread notified okay"); - } -} |