设置线程优先级 1,设置线程的优先级setPriority()设置线程的优先级public class Demo7_Priority {public static void main(String[] args) { Thread t1 = new Thread(){ public void run() { for(int i = 0; i < 100; i++) { System.out.println(getName() 多线程 2023-10-22 51 点赞 0 评论 77 浏览