Meaningless Drivel is fun!
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic

Interrupted Exception in Threads

Anudeep Duvvuri

Joined: May 18, 2012
Posts: 29
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

Joined: Jan 03, 2004
Posts: 6109

In the future, please UseOneThreadPerQuestion.(⇐click)

I'm locking this one. The discussion can continue in your other thread:
I agree. Here's the link:
subject: Interrupted Exception in Threads
jQuery in Action, 3rd edition