Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

asked on

How to find out if all executorservice threads have finished

Hi,
There is a function process which does the following
        for(i = 0;i<100;i++){
        executorservice.submit(task);
        }
       once all the threads have finished there tasks i want to update a table.. How do i know if all the threads have finished the tasks...As the process function will comeout once the threads have finished the task. so probably i need to put a listener somewhere.

Thanks

Thanks
Avatar of krakatoa
krakatoa
Flag of United Kingdom of Great Britain and Northern Ireland image

Daemon thread?
ASKER CERTIFIED SOLUTION
Avatar of dpearson
dpearson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial