File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Threads" Watch "Threads" New topic


Mayuri Lakhani

Joined: Nov 18, 2002
Posts: 28
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?
Ramkumar Venkat

Joined: Dec 09, 2002
Posts: 7
Check this out
I agree. Here's the link:
subject: Threads
It's not a secret anymore!