multithreading - How to run a delayed or scheduled task in Java provided you have a thread? -


suppose have thread thread pool. how execute delated/scheduled task (runnable or callable) in thread?

don't use thread directly that.

use, instance, scheduledexecutorservice.

the executors class want create one.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -