Home arrow static arrow Java Programming [Archive] - Problem with Thread.sleep()
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Problem with Thread.sleep()
This topic has 1 reply on 1 page.

Posts:16
Registered: 6/8/04
Problem with Thread.sleep()  
Jul 7, 2004 10:24 AM



 
hi all,

I am trying Thread.sleep() method to introduce a delay. In the program i ask the user to specify the value to be entered in Thread.sleep() (to indicate the amount of delay desired by the user). but strangely, if a low value is entered, i get a different result which actually should not happen as the rest of the calculation remains the same, only the amt of delay changes.

could anyone help me with this

cheers
ankit
 

Posts:6,750
Registered: 1/25/04
Re: Problem with Thread.sleep()  
Jul 7, 2004 10:42 AM (reply 1 of 1)



 
[url http://forum.java.sun.com/thread.jsp?forum=31&thread=536288]Double-post[/url]
 
This topic has 1 reply on 1 page.