package day10;
public class Threadd_setPriority {
public static void main(String[] args) {
Thread max = new Thread(){
public void run(){
for(int i=0;i<100000;i++){
System.out.println("max");
}
}
};
Thread min = new Thread(){
public void run(){
for(int i=0;i<100000;i++){
System.out.println("min");
}
}
};
Thread nor = new Thread(){
public void run(){
for(int i=0;i<100000f;i++){
System.out.println("nor");
}
}
};
max.setPriority(Thread.MAX_PRIORITY);
min.setPriority(Thread.MIN_PRIORITY);
max.start();
min.start();
nor.start();
}
}