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
Post a Comment