This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threads

 
Mayuri Lakhani
Greenhorn
Posts: 28
  • 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
  • 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