🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #75739

Re: When the stop() in Thread class changed to final method?

#75739
From: Lame Chickenhead
Date: Mon, 19 Mar 2007 00:54
51 lines
3090 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




- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"[The Space Shuttle] Columbia carried in its payroll classroom
experiments from some of our students in America."

--- Adolph Bush,
    Bethesda, Md., Feb. 3, 2003
Technical Details
Message-ID: <CC05FCF7.BEC38D4B@89.200.175.138>
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!novia!volia.net!news2.volia.net!news.ntu-kpi.kiev.ua!news.uran.net.ua!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!telus.net!ugliest
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>

Show Full Headers
Complete Article Headers
Message-ID: <CC05FCF7.BEC38D4B@89.200.175.138>
Subject: Re: When the stop() in Thread class changed to final method?
Date: Mon, 19 Mar 2007 00:54:34 GMT
From: Lame Chickenhead <ugliest@telus.net>
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!novia!volia.net!news2.volia.net!news.ntu-kpi.kiev.ua!news.uran.net.ua!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!telus.net!ugliest
Newsgroups: news.groups, alt.slack, alt.config, news.software.nntp, alt.usenet.kooks
 alt.usenet.kooks
Organization: Your Fat Boss On Your Neck Co.
Lines: 51
Approved: ceo@big8.orgy (Big-8 CEO)
NNTP-Posting-Host: d135-75.tenet.odessa.ua
X-Trace: toster.te.net.ua 1174265670 15979 195.138.75.135 (19 Mar 2007
X-Complaints-To: abuse@te.net.ua
NNTP-Posting-Date: Mon, 19 Mar 2007 00:54:30 +0000 (UTC)
X-Newsreader: Microsoft Outlook Express 4.72.3110.1