LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   What is race condition? (http://www.linuxquestions.org/questions/programming-9/what-is-race-condition-670164/)

LinuxInfo 09-15-2008 09:25 PM

What is race condition?
 
Respected Sir,

Could you please tell me what is Race Condition and how it results. How can we prevent from Race condition?

Does this occur if we create more number of childs or it occurs if we keep creating both childs and parents?

Thanks.

lipun4u 09-15-2008 09:44 PM

if multiple process concurrently access and modify a variable, then value of that variable depends upon the order of execution of those processes. in this case the programs may give unexpected result. this is known as race condition.

various synchronization mechanism is used to avoid race condition.


All times are GMT -5. The time now is 10:53 AM.