文章詳情頁
java - AtomicInteger等原子類,是不是不用volatile修飾,自帶volatile屬性?
瀏覽:66日期:2024-01-07 08:08:57
問題描述
AtomicInteger等原子類,是不是不用volatile修飾,自帶volatile屬性?
問題解答
回答1:源碼就是用volatile修飾的
標簽:
java
排行榜
![css3 - [CSS] 動畫效果 3D翻轉bug](http://www.cgvv.com.cn/attached/image/news/202304/110831f073.png)