Alex Rivera | Logout

How to know if other threads have finished?

Asked 2009-03-31T18:25:10.357
144

I have an object with a method named StartDownload(), that starts three threads.

How do I get a notification when each thread has finished executing?

Is there a way to know if one (or all) of the thread is finished or is still executing?

Edit
Report

1 Answer

0

You could also use SwingWorker, which has built-in property change support. See addPropertyChangeListener() or the get() method for a state change listener example.

answered 2009-06-23T11:11:26.880

Your Answer