MonitorCase2: Added join and end message

This commit is contained in:
Karsten Jeppesen
2021-03-02 17:07:58 +01:00
parent 9423e92dcf
commit 6380b10f0c

View File

@@ -36,6 +36,15 @@ public class PC {
p.start(); p.start();
c.start(); c.start();
try {
p.join();
c.join();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("End...");
} }
} }