| Author |
Thread.sleep(milisec)
|
kalps ganvir
Greenhorn
Joined: Mar 29, 2006
Posts: 8
|
|
i know that sleep method coz current thread to suspend its execution for milisec ok!! but my question is about the exception thrown by this method is InterrupedException when will this excetion is thrown by sleep()?
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
|
|
|
InterruptedException is thrown from Thread.sleep() when another thread calls interrupt() on the sleeping thread.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
kalps ganvir
Greenhorn
Joined: Mar 29, 2006
Posts: 8
|
|
thnks but not satisfied
|
 |
 |
|
|
subject: Thread.sleep(milisec)
|
|
|