Single JVM instruction is not atomic but single assemble instruction is atomic. Is this correct?
Demo
public class DemoInstruction {
public static void main(String[] args) {
int i=0;
i++;
}
}
i++
translate into JVM instruction:
IINC 1 1
i++
translates into local assembly instructions consisting of three assembly instructions.