Example
int a = 8;
if(a < 9){
something1();
}
else{
something2();
}
what will happen if there was a context switch right before the if statment (after the init of a) which will change a to a=11, and then return to the above code, and before getting to else, another context switch which will change a to a= 8, and again return to the above code. will it still be in the else statment?
thanks