🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

newbie: Threads

#7383
From: Petar Banicevic
Date: Mon, 25 Jun 2001 18:24
10 lines
1042 bytes
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 ?
Technical Details
Message-ID: <3b378205$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!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 11:27:55 PST
From: "Petar Banicevic" <petar_b@usa.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: newbie: Threads
Date: Mon, 25 Jun 2001 20:24:58 +0200
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 12.98.142.222
Message-ID: <3b378205$1_2@dnews>
X-Trace: dnews 993493509 12.98.142.222 (25 Jun 2001 11:25:09 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews