This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes Interrupted Exception in Threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic
Author

Interrupted Exception in Threads

Anudeep Duvvuri
Greenhorn

Joined: May 18, 2012
Posts: 29
Hi
I read that Threads can throw Interrupted Exception when the Thread that is executing is interrupted. But how to get this Exception? I mean can any one explain me with a small program which generates this Interrupted Exception??

Thanks in advance
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

In the future, please UseOneThreadPerQuestion.(⇐click)

I'm locking this one. The discussion can continue in your other thread: http://www.coderanch.com/t/582134/java/java/Interrupted-Exception
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interrupted Exception in Threads
 
Similar Threads
How to indicate to JVM in code where is/is not a good place to kill my thread
Sleep and Yield.. Am i correct??
interrupt()and priorities
Threads
Interrupted Exception