线程加锁 同步

synchronized (this) {

}
原文地址:https://www.cnblogs.com/zhaozilongcjiajia/p/11227184.html