Race Condition Scenario

A race condition occurs if the effect of multiple threads on shared data depends on the order in which the threads are scheduled.