发布时间:2014-03-18 13:56:35
package thread;public class ThreadTest1 {public static void main(String[] args) {//创建一个公用的账户Account act = new Account("zhangsan",5000.0);Thread t1 = new Thread(new PrimeRun(act));Thread t2 = new Thread(new PrimeRun(act));//设置线程的名字t1.setName("t1");t2.setName("t2");.........【阅读全文】