🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Waiting for a thread to finish

#2268
From: Al Mal
Date: Mon, 16 Apr 2001 04:27
13 lines
1311 bytes
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: <3ada7468$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!news.boerde.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,609fa558749ab800,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-04-15 21:46:06 PST
From: "Al Mal" <alex.im@nospam.usa.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Waiting for a thread to finish
Date: Mon, 16 Apr 2001 00:27:42 -0400
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2462.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000
NNTP-Posting-Host: 64.231.9.8
Message-ID: <3ada7468$1_1@dnews>
X-Trace: dnews 987395176 64.231.9.8 (15 Apr 2001 21:26:16 -0700)
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!news.boerde.de!dnews