使用synchronized (this) 沒有上鎖成功,多線程仍是同時運行起來。

測試代碼web /** *@ClassName Test *@Description TODO *@Author luziyuan *@Date 2020-03-22 15:04 *@Version 1.0 **/ public class Test { public void test() { synchronized (this) {
相關文章
相關標籤/搜索