Thread Priority in Java with Example