Sleep in Java

From: Poochie (poochie2NO_SPAM_at_libero.it)
Date: 06/25/04


Date: Fri, 25 Jun 2004 00:40:35 GMT

How can I tell my program to sleep for a number of milliseconds and then go
for the next instruction?

Thanks, Poochie



Relevant Pages

  • Re: Sleep in Java
    ... > How can I tell my program to sleep for a number of milliseconds and then go ... > for the next instruction? ... > Thanks, Poochie ...
    (comp.lang.java.help)
  • Re: reinitialize byte array to zero
    ... Thread.sleep(long) puts a Thread into sleep state for the specified numebr ... of milliseconds; after this period, the thread is put into ready state. ... > measurements using Thread.sleepand another running the test loop and ...
    (comp.lang.java.programmer)
  • Re: Bugs in donkey.lib
    ... with 100 milliseconds if it *has* to be done this way. ... absolutely right about the context switches. ... I'm sure the use of Sleep ... waiting on to finish was running at the same priority level as the ...
    (alt.lang.asm)
  • Re: Bugs in donkey.lib
    ... > in milliseconds under Win32 (rather than in seconds, ... I personally think that a milisecond-based sleep is the ... *to same-or-higher priority processes) is a disaster. ...
    (alt.lang.asm)
  • Re: Runtime.exec(String[]) Doesnt Always Work, bBut Runtime.exec(String) Does
    ... sleep() call, just in case waiting had any effect. ... milliseconds, every time I ran a program, I got data from the appropriate ... (I assume stopFlag is volatile.) ... They wont read the flag if there is no data to read and the streams are not closed. ...
    (comp.lang.java.programmer)