What is Race condition?
Race condition: The circumstances where several processes access - and manipulate shared data-concurrently. The last value of the shared data depends on that process finishes last. To prevent this condition, concurrent processes should be synchronized.