摘要: (已迁移) 1 class MonitorExample{ 2 int a = 0; 3 4 public synchronized void writer(){ 5 ++a; 6 } 7 8 public synchronized void reader(){ 9 int i = a; 10 .. 阅读全文
posted @ 2020-10-13 22:44 α_伊卡洛斯 阅读(90) 评论(0) 推荐(0)