Why does select() consume so much CPU time in my program?
Unfortunately, this is wrong interpretation of the numbers. I’ve faced this situation many times (and ask a question on stackoverflow too). The main reason, is VisualVM doesn’t show correct CPU time. It showing percentage of the thread time in RUNNING state. But from documentation on Thread.State: Thread state for a runnable thread. A thread in … Read more