Hi,all
Suppose that you would like to stop a
thread gracefully and release any locks that the thread
might be holding. Which of the following three techniques is preferred over the other two?
a. Invoke the Thread.stop method.
b. Invoke the Thread.destroy method.
c. Return from the run method based on the state of a boolean flag.
C is prefer. Who can give me a full explaination about it, specially that boolean flag?
Thanks
Roger