Thread View: news.software.nntp
1 messages
1 total messages
Started by Franklin
Thu, 08 Mar 2007 20:10
Re: When the stop() in Thread class changed to final method?
Author: Franklin
Date: Thu, 08 Mar 2007 20:10
Date: Thu, 08 Mar 2007 20:10
50 lines
3069 bytes
3069 bytes
In article <epup7l$4o0$1@ctb-nnrp2.saix.net>, Rogan Dawes <discard@dawes.za.net> wrote: >RC wrote: >> Daniel Pitts wrote: >>> On Feb 1, 7:27 am, RC <raymond.c...@nospam.noaa.gov> wrote: >>>> If you go to this link >>>> >>>> http://java.sun.com/j2se/1.5.0/docs/guide/misc/threadPrimitiveDepreca... >> >>> >>> That document you linked to is suggesting that you override the stop >>> method in Applet, not Thread. >> >> Then, do you know how I can stop a thread since Thread.stop() >> has deprecated. Can I just make a thread = null? Forgot to tellya. First of all, you can't possibly set thread to null. Whatever you set in your program, is just your copy of a pointer to a thread. The thread exists in JVM or operating system and it could care less what you set in your program. Just about the only thing you can do to it, is to ethier exit gracefuly, or slaughter it, which will simply crash your program, at least in some cases. Making your thread variable null does not affect that tread in ANY way. It only takes away your ability to refer to it from your program. Anotherwords, it doesn't do a jack shit. >Did you not read the link that YOU provided above? > >It has all the advice and examples you need to answer that question. > >Rogan - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "Government is not reason, it is not eloquence. It is a force, like fire, a dangerous servant and a terrible master." --- George Washington.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads