import java.util.*;
/**
* pTitle: 提高线程优先级/p
* pDescription: 通过修改线程的优先级,是线程获得优先处理。/p
* pCopyright: Copyright (c) 2003/p
* pFilename: upPRIThread.java/p
* @version 1.0
*/
public class upPRIThread {
//主方法
public static void main(String[] args) throws Exception {
Thread1 t1 = new Thread1();
t1.start();
Thread2 t2 = new Thread2();
t2.start();
t1.setPriority(Thread.MIN_PRIORITY);
t2.setPriority(Thread.MIN_PRIORITY);
new Thread().sleep(105);
t2.setPrior...[ 查看全文 ]