多个线程访问但仅在同步块内访问的变量是否需要volatile修饰符?如果没有,为什么?
java multithreading volatile synchronized
java ×1
multithreading ×1
synchronized ×1
volatile ×1