7
scheduleAtFixedRate vs scheduleWithFixedDelay
Quelle est la principale différence entre scheduleAtFixedRateet les scheduleWithFixedDelayméthodes de ScheduledExecutorService ? scheduler.scheduleAtFixedRate(new Runnable() { @Override public void run() { System.out.println("scheduleAtFixedRate: " + new Date()); } }, 1, 3L , SECONDS); scheduler.scheduleWithFixedDelay(new Runnable() { @Override public void run() { System.out.println("scheduleWithFixedDelay: " + new Date()); } }, 1, 3L , SECONDS); …