Article View: news.software.nntp
Article #75394Re: When the stop() in Thread class changed to final method?
From: 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.
Technical Details
Message-ID:
<b1cce533.9f55a9e9@harvard.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!image.surnet.ru!news1.lucky.net!carrier.kiev.ua!news.te.net.ua!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny04.POSTED!760c3fd9!ucsd.edu!greasyReferences:
<ept0sr$o2q$1@news.nems.noaa.gov> <1170358168.234067.21860@h3g2000cwc.googlegroups.com> <eptnpp$16f$1@news.nems.noaa.gov> <epup7l$4o0$1@ctb-nnrp2.saix.net>Show Full Headers
Complete Article Headers
Message-ID: <b1cce533.9f55a9e9@harvard.edu> Subject: Re: When the stop() in Thread class changed to final method? Date: Thu, 8 Mar 2007 20:10:58 GMT From: Franklin <greasy@ucsd.edu> References: <ept0sr$o2q$1@news.nems.noaa.gov> <1170358168.234067.21860@h3g2000cwc.googlegroups.com> <eptnpp$16f$1@news.nems.noaa.gov> <epup7l$4o0$1@ctb-nnrp2.saix.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!feeder1.cambrium.nl!feed.tweaknews.nl!news2.euro.net!image.surnet.ru!news1.lucky.net!carrier.kiev.ua!news.te.net.ua!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny04.POSTED!760c3fd9!ucsd.edu!greasy Newsgroups: news.groups, alt.slack, alt.config, news.software.nntp, alt.usenet.kooks alt.usenet.kooks Organization: Deranged Presidents Association Lines: 50 NNTP-Posting-Host: d14-75.tenet.odessa.ua X-Trace: toster.te.net.ua 1173401791 771 195.138.75.14 (9 Mar 2007 00:56:31 GMT) X-Complaints-To: abuse@te.net.ua NNTP-Posting-Date: Fri, 9 Mar 2007 00:56:31 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 4.72.3110.1