Skip to content

Latest commit

 

History

History
5 lines (4 loc) · 176 Bytes

README.md

File metadata and controls

5 lines (4 loc) · 176 Bytes

java_puzzles

Java Puzzles

  • BrokenVolatileIntCounter:volatile 无法保证原子性
  • BrokenSingleton:double-check locking 中对单例使用 volatile 修饰的必要性