This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
veena bijur wrote:1. Difference between interrupt() and sleep() in threads
Tell me: what is the difference between slapping someone in the face, and taking a nap? That is the difference between interrupt() and sleep(). They are completely different, not used for the same purpose, and have no relation except that one (taking a nap) can be affected if someone else does the other to you (slap in the face).
2. In which situation those are used being used?
You use interrupt() when you want to interrupt() another Thread which may be waiting on something. You use sleep() when you want this thread to pause for a bit.
Joined: May 16, 2011
Now i got it.
Thanks a lot.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Difference between interrupt() and sleep()