Многопоточность

Метод Thread.join()

1/1

Дано:

3. public class Leader implements Runnable {
4.     public static void main(String[] args) {
5.         Thread t = new Thread(new Leader());
6.         t.start();
7.         System.out.print("m1 ");
8.         t.join();
9.         System.out.print("m2 ");
10.    }
11.    public void run() {
12.        System.out.print("r1 ");
13.        System.out.print("r2 ");
14.    }
15. }

Какие утверждения верны? (Выберите все подходящие.)

Comments