How to stop/destroy a thread safely?

Currently, method Thread.stop, Thread.destroy are deprecated.How can I stop/destroy a thread safely?Or a thread is needed to be stopped when it finish its job?Thanks!
[194 byte] By [jiangshachinaa] at [2007-11-27 6:24:17]
# 1

> Currently, method Thread.stop, Thread.destroy are

> deprecated.

> How can I stop/destroy a thread safely?

> Or a thread is needed to be stopped when it finish

> its job?

When a thread gets to the end of the run method. It stops. Safely. And you don't have to do anything else to it.

cotton.ma at 2007-7-12 17:42:59 > top of Java-index,Core,Core APIs...
# 2
> When a thread gets to the end of the run method.> It stops. Safely. And you don't have to do anything else to it.Does that mean I just ensure that run method could finish its job and go the end safely?
jiangshachinaa at 2007-7-12 17:42:59 > top of Java-index,Core,Core APIs...
# 3
That's exactly what he just said.
ejpa at 2007-7-12 17:42:59 > top of Java-index,Core,Core APIs...