🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: newbie: Threads

#7427
From: Owen Green
Date: Fri, 22 Jun 2001 15:44
8 lines
1182 bytes
> Can I call start() method again to do the same process again ?
I'm pretty sure you can't call start() twice on a thread (well, you can call
it, but nothing happens). The best way to get repeated execution out of a
thread when you don't know how often you want to re-run it in advance is to
use wait() and notify() rather than just re-create the object each time.

hth
Owen
Technical Details
Message-ID: <3b3367e4$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!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 08:50:02 PST
From: "Owen Green" <owen@norobots.unique.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b33083e_2@dnews>
Subject: Re: newbie: Threads
Date: Fri, 22 Jun 2001 16:44:35 +0100
Lines: 11
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: 213.86.7.136
Message-ID: <3b3367e4$1_2@dnews>
X-Trace: dnews 993224676 213.86.7.136 (22 Jun 2001 08:44:36 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews