ScheduledExecutorService - Ignore already running runnable
问题 I'm using a scheduled executor service private ScheduledExecutorService pool = new ScheduledThreadPoolExecutor(1); running a runnable at fixed rate pool.scheduleAtFixedRate(new CoolRunnable(), 10, 10, TimeUnit.MILLISECONDS); This thread pool waits that the previous execution finishes, but i'd like it to run the runnable every 10 milliseconds no matter whether the previous is done or not. How can I do that? EDIT: Fixed the problem replacing the MySQL connection with a connection pool. The