| Define Race Condition in cSharp?
When one resource is simultaneously access by two threads at same time then Race Conditions occurs. And here thread which will able to access first cannot be predicted. Now we will take a simple example we have two threads Thread1 and Thread2 and they are trying to access a shared resource called resourcex. And if both are trying to update some values in resourcex then the last value written to resourcex will be saved. | | |