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
Your solution will use 100% CPU, among other problems. Google for "condition variable".