Thread Synchronization
Problem with running concurrent tasks
Lets start from the very beginning, suppose you have 2 threads (thread A and B) that both perform a similar function, changing a previously declared integer's value. Now both threads run continuously, changing the same integer's...