-   Programming (
-   -   What is race condition? (

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?


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 12:47 AM.