Java并发
This commit is contained in:
@ -7,7 +7,7 @@ public class J1_Normal {
|
||||
|
||||
private static int j = 0;
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
public static void main(String[] args) {
|
||||
Thread thread = new Thread(() -> {
|
||||
for (int i = 0; i < 100000; i++) {
|
||||
j++;
|
||||
|
Reference in New Issue
Block a user