var i = 1;
function er() {
i++;
}
As far as I know, i++ operation includes three steps. Read-modify-write, when any event makes reading(at the first step), can any other modify the same i value? After reading, during modifying, can any other event get the modify access by context swithching? How contexts switching works?