Commit b531a8a
committed
CountDownLatch_7.App#App
Clean up auto-generated catch blocks
re-activated the 0.1sec pause in consumer() (for the sake of not flooding the output terminal)
Commented out {t1,t2}.join() ... instead, forced the app (main thread) to quite after 30secs1 parent 8ed7488 commit b531a8aCopy full SHA for b531a8a
File tree
Expand file treeCollapse file tree
1 file changed
+10
-13
lines changedOpen diff view settings
Filter options
- JavaMultiThreadingCodes/src/ProducerConsumer_7
Expand file treeCollapse file tree
1 file changed
+10
-13
lines changedOpen diff view settings
Collapse file
JavaMultiThreadingCodes/src/ProducerConsumer_7/App.java
Copy file name to clipboardExpand all lines: JavaMultiThreadingCodes/src/ProducerConsumer_7/App.java+10-13Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
35 | | - |
36 | | - |
37 | | - |
| 35 | + |
38 | 36 | |
39 | 37 | |
40 | 38 | |
41 | 39 | |
42 | | - |
43 | | - |
44 | | - |
| 40 | + |
45 | 41 | |
46 | 42 | |
47 | 43 | |
48 | 44 | |
49 | 45 | |
50 | 46 | |
51 | 47 | |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
| 48 | + |
56 | 49 | |
57 | 50 | |
58 | 51 | |
59 | 52 | |
60 | | - |
61 | | - |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
62 | 59 | |
63 | 60 | |
64 | 61 | |
| ||
71 | 68 | |
72 | 69 | |
73 | 70 | |
74 | | - |
| 71 | + |
75 | 72 | |
76 | 73 | |
77 | 74 | |
|
0 commit comments