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 79a7044 commit 0a4fc7dCopy full SHA for 0a4fc7d
docs/CH15.md
@@ -424,12 +424,14 @@ package onlyfun.caterpillar;
424
public class SomeThread implements Runnable {
425
public void run() {
426
System.out.println("sleep....至 blocked 狀態");
427
- try {
428
- Thread.sleep(9999);
429
- }
430
- catch(InterruptedException e) {
431
- System.out.println("I am interrupted....");
432
+ while(true) {
+ try {
+ Thread.sleep(9999);
+ }
+ catch(InterruptedException e) {
+ System.out.println("I am interrupted....");
433
434
435
}
436
437
public static void main(String[] args) {
0 commit comments