Skip to content

Commit 1277bfc

Browse files
committed
corrected thread creation
1 parent 3d474c4 commit 1277bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

join/src/main/java/com/iluwatar/join/JoinPatternDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static void main(String[] args) {
5454

5555
//Dependent threads after execution of DemoThreads
5656
for (int i = 0; i < noOfDependentThreads; i++) {
57-
new DependentThread(i + 1).start();
57+
new Thread(new DependentThread(i + 1)).start();
5858
}
5959
LOGGER.info("end of program ");
6060

0 commit comments

Comments
 (0)