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 -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -