File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threads

 
Mayuri Lakhani
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am confused in what happens when a thread is interrupted while it is sleeping. When does it throw interruptedException() or just set the Interrupted Exception flag ture? I am even confused with setting and clearing of the flag when the isInterrupted() and interrupted() method is called?
Can anybody explain in detail?
Thanks
Mayuri
 
Ramkumar Venkat
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this out
http://www.javaranch.com/certfaq.jsp#q23
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic