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
No, it's not certain. If you declare the variable volatile, then the complier is supposed to generate code that always loads the variable from memory on a read.