race condition

Race condition is a kind of a bug that occurs in multithreaded applications.
When two or more threads perform a set of operations in parallel, that access the same memory location.  Also, one or more thread out of them modifies the data in that memory location, then this can lead to an unexpected results some times.