MonitorCase1: Added join and end message
This commit is contained in:
@@ -14,6 +14,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");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user