p { margin-bottom: 0.21cm; }
合并线程
在A 方法中 执行 B( 线程类).join(); 用join 方法合并以后 就只执行B 线程类 等到B 线程类执行完后 再执行A 方法中未执行完的方法
执行合并线程的时间 ( 毫秒 )
B.join(1000) 合并时间为1 秒
p { margin-bottom: 0.21cm; }
合并线程
在A 方法中 执行 B( 线程类).join(); 用join 方法合并以后 就只执行B 线程类 等到B 线程类执行完后 再执行A 方法中未执行完的方法
执行合并线程的时间 ( 毫秒 )
B.join(1000) 合并时间为1 秒