Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 460eb93 commit 8ed7488Copy full SHA for 8ed7488
JavaMultiThreadingCodes/src/CountDownLatch_6/App.java
@@ -58,6 +58,8 @@ public static void main(String[] args) {
58
for (int i = 0; i < 3; i++) {
59
executor.submit(new Processor(latch));
60
}
61
+ executor.shutdown();
62
+
63
try {
64
// Application’s main thread waits, till other service threads which are
65
// as an example responsible for starting framework services have completed started all services.
0 commit comments