"Lai, Kenny" wrote:
>
> i was wondering what the best way to stop a thread was.. the jdk docs say
> that the stop() method is depreciated, but it doesnt clearly make out a
> (safe) alternative.. does anyone have any idea on this matter?
>

 Java provides no alternative. The thread you want
to stop has to be written specially. The official Sun line
is that applications cannot safely use stop(). That's probably
true, but it also makes it impossible to write servlet
containers that can properly manage their webapps. (Imagine
if your operating system prohibited you from killing rogue
processes because 'it might leave things in an inconsistent
state'). Ok, right, I'm calm now, sorry for the rant. Anyway,
in addition to the URL posted by Vamsee Bommakanti,
you might want to check out:

 http://g.oswego.edu/dl/cpj/cancel.html



--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to