[5797] in java-interest

home help back first fref pref prev next nref lref last post

Re: Is there...

daemon@ATHENA.MIT.EDU (Jon Spelbring)
Mon Feb 26 22:22:11 1996

To: demaagd@cs.hope.edu (David DeMaagd)
cc: java-interest@java.sun.com
In-reply-to: Your message of "Sat, 24 Feb 1996 18:31:56 EST."
             <9602242331.AA01275@gimli.cs.hope.edu> 
Date: Mon, 26 Feb 1996 20:10:02 -0600
From: Jon Spelbring <jons@edge.net>

David,

Here's a couple of ways:

1. synchronize your method, and use wait

synchronized foo() {

try {
  wait(1000);
} catch(InterruptedException e) {}

}

2. Use the static Thread method:

Thread.sleep(1000) 


-- 
Jon Spelbring
NSC Systems Group, Inc
jons@edge.net
http://www.edge.net/~jons


-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post