Thread.sleep() VS Executor.scheduleWithFixedDelay()
You’re dealing with sleep times termed in tens of seconds. The possible savings by changing your sleep option here is likely nanoseconds or microseconds. I’d prefer the latter style every time, but if you have the former and it’s going to cost you a lot to change it, “improving performance” isn’t a particularly good justification. … Read more