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贡献1820条经验 获得超9个赞
分别新建了Thread类的对象thread1、thread2、thread3、thread4对象,里面是两个参数,这两个参数的具体作用还要看Thread类中是怎么使用的才能知道
- 1 回答
- 0 关注
- 126 浏览
添加回答
举报
0/150
提交
取消
