摘要: 一、内存可见性问题 先来看如下代码 class MyCounter{ public int flag = 0;}public class ThreadDemo22 { public static void main(String[] args) { MyCounter myCounter = new 阅读全文
posted @ 2023-08-29 18:24 司丝思 阅读(23) 评论(0) 推荐(0)