Explain lock statement – C# Threading ?

lock ensures that another thread does not enter critical section if one thread is in critical section code. This means one thread gets mutual exclusive […]