Home  >  Q&A  >  body text

java - AtomicInteger等原子类,是不是不用volatile修饰,自带volatile属性?

AtomicInteger等原子类,是不是不用volatile修饰,自带volatile属性?

ringa_leeringa_lee2713 days ago775

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:55:38

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:55:38

    The source code is modified with volatile

    reply
    0
  • Cancelreply