summaryrefslogtreecommitdiff
path: root/Year_3/TSDWL/ex_20191218/MainThread.java
blob: c340a2a3b81e4a86fc0dc4e022185a36b0da5a31 (plain)
1
2
3
4
5
6
7
8
9
public class MainThread {
    public static void main(String[] args) {
        Shared sh = new Shared();
        Thread1 t1 = new Thread1(sh);
        Thread2 t2 = new Thread2(sh);
        t1.start();
        t2.start();
    }
}