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 5d6ebe6 commit b6f81a0Copy full SHA for b6f81a0
src/main/java/com/crossoverjie/actual/TwoThread.java
@@ -67,6 +67,7 @@ public void run() {
67
}
68
} else {
69
try {
70
+ //防止线程空转
71
Thread.sleep(10);
72
} catch (InterruptedException e) {
73
e.printStackTrace();
@@ -104,6 +105,7 @@ public void run() {
104
105
106
107
108
109
110
111
0 commit comments