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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -