13 lines
285 B
Java
13 lines
285 B
Java
|
package thead.thread_7;
|
||
|
|
||
|
public class Run {
|
||
|
public static void main(String[] args) {
|
||
|
Service service = new Service();
|
||
|
ThreadA threadA = new ThreadA(service);
|
||
|
threadA.start();
|
||
|
|
||
|
ThreadB threadB = new ThreadB(service);
|
||
|
threadB.start();
|
||
|
}
|
||
|
}
|