为了账号安全,请及时绑定邮箱和手机立即绑定

如下这几行代码什么意思?

如下这几行代码什么意思?

API
蓝山帝景 2022-07-14 11:11:54
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类中是怎么使用的才能知道

查看完整回答
反对 回复 2022-07-18
  • 1 回答
  • 0 关注
  • 126 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号