下面代码是什么意思呀?一本书中那个给出了这个代码,有点看不太懂
public class T {
int count =0;
synchronized void m(){
for (int i = 0; i < 10000; i++) {
count++;
}
}
public static void main(String[] args) {
T t= new T();
List<Thread>list= new ArrayList<>();
for (int i = 0; i < 10; i++) {
list.forEach((o)->{
try {
o.join();
} catch (InterruptedException e) {
e.printStackTrace();
}
});
System.out.println(t.count);
}
}
}
圈中是什么意思