有助于提高"锁"性能的几点建议
1.减少锁持有时间
public synchronized void syncMethod() {
othercode1();
mutextMethod();
othercode2();
} public synchr有助于提高"锁"性能的几点建议
1.减少锁持有时间
public synchronized void syncMethod() {
othercode1();
mutextMethod();
othercode2();
} public synchr