5.3 Join方法合并线程

来源:互联网 发布:阿里云邮箱账号格式 编辑:程序博客网 时间:2024/05/18 20:32

p { margin-bottom: 0.21cm; }

合并线程

A方法中执行 B(线程类).join();join方法合并以后就只执行B线程类 等到B线程类执行完后 再执行A方法中未执行完的方法

执行合并线程的时间(毫秒)

B.join(1000)合并时间为1

原创粉丝点击