|
Re: How do I wait for the thread from the ThreadPool to finish?: msg#00034java.jsr.166-concurrency
Minnie Haridasa wrote: Use the submit method (in ExecutorService interface): Future f = executor.submit(runnable, null); then you can wait using f.get(). (You can also explicitly wrap your runnable into callable before submitting: Executors.callable(runnable)). Regards, Dawid
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | How do I wait for the thread from the ThreadPool to finish?, Minnie Haridasa |
|---|---|
| Next by Date: | Re: How do I wait for the thread from theThreadPool to finish?, Joe Bowbeer |
| Previous by Thread: | How do I wait for the thread from the ThreadPool to finish?, Minnie Haridasa |
| Next by Thread: | Re: How do I wait for the thread from theThreadPool to finish?, Joe Bowbeer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |