A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
Threads and Synchronization
Thread Joining and ExecutorService
Joined: Jul 18, 2011
Sep 19, 2011 23:30:13
how to call join method on a thread that was started by ExecutorService object?
Stephan van Hulst
Joined: Sep 20, 2010
Sep 20, 2011 00:55:05
You shouldn't. Instead, when you submit a task to the ExecutorService, you can use the Future of that task to wait until the task is finished, through the get() method.
Joined: Sep 26, 2010
Oct 02, 2011 06:29:22
You may be able to assign a runnable to wait on, and then submitted the object to an ExecutorService.
question on join
I agree. Here's the link:
subject: Thread Joining and ExecutorService
Thread and Web Applications
ExecutorService with 1 thread
Why the Runnable cant be resolved
ExecutorService and FutureTask - Blocked Thread
Making a Execution of a tasks take only constant Number of seconds
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015