You have a setPriority() method in the Thread class.
Check this javadoc.
Setting thread priority to maximum:
public static void main(String args[]) {
Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
// Your main code.
}
You have a setPriority() method in the Thread class.
Check this javadoc.
Setting thread priority to maximum:
public static void main(String args[]) {
Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
// Your main code.
}