Skip to content

Commit 886c777

Browse files
committed
Update threads.java
1 parent 494fb77 commit 886c777

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Thread/threads.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ public static void main(String args[]) {
2020
threads t2 = new threads();
2121
t1.setPriority(Thread.MAX_PRIORITY);
2222
t2.setPriority(Thread.MIN_PRIORITY);
23-
t0.run();
23+
t0.start();
2424
try {
2525
t0.join();
2626
} catch (Exception e) {
2727
System.out.println(e);
2828
}
29-
t1.run();
30-
t2.run();
29+
t1.start();
30+
t2.start();
3131
}
3232
}

0 commit comments

Comments
 (0)