🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: newbie: Threads

#7433
From: dnoyeB
Date: Fri, 22 Jun 2001 21:16
24 lines
1691 bytes
ARe you sure?  Without testing, I would assume you could because you are
calling start on an object, not a thread.  It should if my thinnking is
correct, simply create a new thread and assign it to that object.

If you object is properly defined to extend Thread, then start is not just a
method, but actually should "create" a thread for the object, right?



"Owen Green" <owen@norobots.unique.com> wrote in message
news:3b3367e4$1_2@dnews...
> > 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: <3b342119_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> <3b3367e4$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-22 21:56:28 PST
From: "dnoyeB" <lamont_gilbert @ rigidsoftware.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3b33083e_2@dnews> <3b3367e4$1_2@dnews>
Subject: Re: newbie: Threads
Date: Fri, 22 Jun 2001 17:16:14 -0400
Lines: 26
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: <3b342119_2@dnews>
X-Trace: dnews 993272089 24.181.226.14 (22 Jun 2001 21:54:49 -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