This content has been marked as final. Show 3 replies
Thread is a Runnable within java (or javaw) process: his priority has no meaning outside the JVM, if you wanna impact on CPU usage you should set this process priority, i.e. (for windows):
instead of starting as
You could need to quote the javaw command, to see all possible priorities see start help by typing start/? in cmd.
start/min javaw ...
You could create a new main thread whose only purpose is to set the priority of your current "main thread" and run it.
but remember that any time you start thinking about manipulating thread priorities you should start thinking immediately that you've made a major design error because you should hardly ever mess with them.