Skip to content

Commit 092537f

Browse files
committed
java CPU100%占用-update code
1 parent 5f97852 commit 092537f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

code/CpuTest.class

44 Bytes
Binary file not shown.

code/CpuTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ public static void main(String[] args) {
44

55
while (true) {
66
i++;
7-
// if (i == Integer.MAX_VALUE) {
8-
//// System.out.println("--reset---");
9-
// i = 0;
10-
// }
7+
if (i == Integer.MAX_VALUE) {
8+
// System.out.println("--reset---");
9+
i = 0;
10+
}
1111
}
1212

1313
}

0 commit comments

Comments
 (0)