Home > Back-end >  Java timer task
Java timer task

Time:01-11

Requirement: do a mission in a fixed period of time random time program, how to analysis, is to use a Java implementation,

CodePudding user response:

this problem well, familiar with ah, met yesterday with a thread pool the timing task to do, which estimate the implementation is bad to do
Quartz is very simple and can achieve,

Before modifying, once a second execution


Dynamic modification time the original start time + 3 s


  • Related