java - Checking whether all tasks in ThreadPoolExecutor are completed -


how can check whether tasks submitted threadpoolexecutor completed?

new tasks can added submitted tasks, can't call shutdown followed awaittermination nor invokeall, ignore these new tasks.

yourthreadpoolexecutor.getactivecount(); return 0 when tasks have completed.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -