This takes place normally when two threads are passing messages by environment and examining member variables of a class equally can obtain. You can find almost always a race affliction when one particular thread calls slumber to provide A further thread time to complete a job (Unless of course that snooze is in a loop, with some examining system).