MonitorCase2: Added join and end message
This commit is contained in:
@@ -36,6 +36,15 @@ public class PC {
|
||||
|
||||
p.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