Thread thread1 = new Thread(t1, "加線程1");Thread thread2 = new Thread(t1, "加線程2");Thread thread3 = new Thread(t2, "減線程1");Thread thread4 = new Thread(t2, "減線程2");
1 回答

慕妹3146593
TA貢獻(xiàn)1820條經(jīng)驗(yàn) 獲得超9個(gè)贊
分別新建了Thread類的對(duì)象thread1、thread2、thread3、thread4對(duì)象,里面是兩個(gè)參數(shù),這兩個(gè)參數(shù)的具體作用還要看Thread類中是怎么使用的才能知道
- 1 回答
- 0 關(guān)注
- 99 瀏覽
添加回答
舉報(bào)
0/150
提交
取消