Jun 25, 2019 in Dot Net
Q:

What is a Race Condition?

1 Answer

0 votes
Jun 25, 2019

Race condition occurs when two threads access the same resource and are trying to change it at the same time. The thread which will be able to access the resource first cannot be predicted.

If we have two threads, T1 and T2, and they are trying to access a shared resource called X. And if both the threads try to write a value to X, the last value written to X will be saved.

Related questions

+1 vote
Jun 25, 2019 in Dot Net
+1 vote
Jun 25, 2019 in Dot Net
...