An optimizing compiler or JIT could remove the while loop in this example. public int nop() { while (true) {} }. Compliant Solution ( Thread.sleep() ).
DOWNLOAD: https://tinurli.com/2f951w
DOWNLOAD: https://tinurli.com/2f951w
java-infinite-loop-thread
939c2ea5af
Comments