Are volatile recordings with unstable recordings stored?
For Ex:
I have two streams T1 and T2:
T1:
i = 10;
volatile boolean result = true;
T2:
while(!result){
}
System.out.println(i);
Does T2 always update the value i (10) or the old value?
source
share