This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stopping a thread

 
kesava chaitanya
Ranch Hand
Posts: 140
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

1)in the API stop method was deprecated ;How will u stop a thread?.;
2)wat is deadlock?
anybody write a simple exmple for stopping a thread
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the recommended way to make a stoppable thread:

"Deadlock" is when one thread has locked object 1, and is waiting to lock object 2, while a second thread has locked object 2, and is waiting to lock object 1. The two threads will wait forever; this is called deadlock.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic