So i have this code:
ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();
service.submit(() -> System.out.println("test"));
I submitted a runnable and it run on my PC, but when i run it on a server, it didn't, it run actually but with 50 seconds of delay which is something that i don't expect to happen. Any idea why won't the ExecutorService run the submitted task directly?