同步的第三种方式——暂停直到另一个线程终止,是由 join 方法提供的。下面的这一段代码实例揭示了它的用法: class Compute_thread extends Thread { private int result ...
確定! 回上一頁