62,614
社区成员
发帖
与我相关
我的任务
分享
public void run() {
while (true)
{
synchronized (this) {
........
}
}
}
private Object indexLock = new Object();
public void run() {
while (true)
{
synchronized (indexLock) {
........
}
}
}