🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7425

Re: newbie: Threads

#7425
From: dnoyeB
Date: Fri, 22 Jun 2001 13:06
19 lines
1468 bytes
Well, the thread dies when the run method ends, but if you are holding a
reference to the object, the same rules apply as to other objects.

I think you can call start again to give a new thread to the object.

"Petar Banicevic" <petar_b@usa.net> wrote in message
news:3b33083e_2@dnews...
> I have a class that subclasses a Thread. It has a few class member
> variables.
>
> I need to know what happens when the run method ends:
>
> Is the object dealocated and destroyed ?
> What happened with my class private variables ?
> Can I call start() method again to do the same process again ?
>
>
>
>
Technical Details
Message-ID: <3b33431f$3_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b33083e_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,16d666d905e9f60d
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-22 06:10:54 PST
From: "dnoyeB" <lamont_gilbert @ rigidsoftware.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b33083e_2@dnews>
Subject: Re: newbie: Threads
Date: Fri, 22 Jun 2001 09:06:14 -0400
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 24.181.226.14
Message-ID: <3b33431f$3_2@dnews>
X-Trace: dnews 993215263 24.181.226.14 (22 Jun 2001 06:07:43 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews