I have an application where 2 threads are running... Is there any certanty that when I change a global variable from one thread, the other will notice this change? I don\'t
Use the volatile keyword to hint to the compiler that the value can change at any time.
volatile int myInteger;