public class User implements Serializable {
private Object lock = new Object();
public void get(){
synchronized (lock){
}
}
}
添加回答
举报
0/150
提交
取消