Java多線程系列九——Atomic類

參考資料:https://fangjian0423.github.io/2016/03/16/java-AtomicInteger-analysis/ http://www.cnblogs.com/549294286/p/3766717.html 最近面試遇到一道編程題,要求兩個線程交替打印[0,100]的數字,其中一個只打印奇數,另一個只打印偶數,並且給出特別明顯的提示AtomicInteger
相關文章
相關標籤/搜索