🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2267

Re: Waiting for a thread to finish

#2267
From: Torsten Welches
Date: Mon, 16 Apr 2001 10:24
22 lines
1391 bytes
Al,

look at the Thread.join() method.

Torsten

Al Mal schrieb in Nachricht <3ada7468$1_1@dnews>...
>I need help with a thread that downloads something from the Net. I need to
>build a simple FTP/HTTP client with a URL box and two buttons: Start and
>Stop.
>
>I do download in a thread but I need to wait till it's finished to disable
>the Stop button, enable the Start button and dispose off the resources.
>
>How do I wait?
>
>I have several books and all of them describe synchronizing and creating
>Thread descendants in deep detail leaving my issue off the scope.
>
>Al
>
>
Technical Details
Message-ID: <3adac7cd_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews
References: <3ada7468$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,609fa558749ab800
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-04-16 03:32:16 PST
From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de>
Newsgroups: borland.public.jbuilder.java.api
References: <3ada7468$1_1@dnews>
Subject: Re: Waiting for a thread to finish
Date: Mon, 16 Apr 2001 12:24:46 +0200
Lines: 24
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 195.14.250.7
Message-ID: <3adac7cd_1@dnews>
X-Trace: dnews 987416525 195.14.250.7 (16 Apr 2001 03:22:05 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews