🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: newbie: Threads

#7384
From: Joi Ellis [TeamB]
Date: Mon, 25 Jun 2001 19:10
20 lines
1336 bytes
Petar Banicevic <petar_b@usa.net> wrote:
> Can I do this ?

> ...
>       if (!worker.isAlive())
>         worker=new decoderThread();
>         worker.start();
> ...

> I want to start worker thread (it is doing some background calculation). Is
> this proper way to restart it ?

Once a thread as died, it can not be restarted.  You can only create
a new thread.

-- 
Joi Ellis (TeamB)               http://www.teamb.com/
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <3b378ca9_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!sienna.impulse.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail
References: <3b378205$1_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-25 12:26:40 PST
Message-ID: <3b378ca9_1@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: newbie: Threads
Newsgroups: borland.public.jbuilder.java.language
References: <3b378205$1_2@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 25 Jun 2001 12:10:33 -0700
X-Trace: dnews 993496233 209.46.41.66 (25 Jun 2001 12:10:33 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!sienna.impulse.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!not-for-mail