Wednesday, December 14, 2011

What is race condition?

What is race condition?
Race condition in software is a concurrency flaw that occurs when 2+ threads (or processes) access non-mutual exclusive shared data - like a global variable - and the result of the system is unpredictable, like reading or writing the wrong value.


This question may be asked in a technical interview for a software engineer or any related job position

No comments:

Post a Comment

Please, before starting to comment, evaluate if what you want to write is useful, respectful and positive. A kid may read this also.

Give a good example!