62,614
社区成员
发帖
与我相关
我的任务
分享
public void f(int flag) {
synchronized (this) {
System.out.println("f()" + flag);
try {
Thread.sleep(10000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}