Categories

Oct 18, 2019 in C Sharp (C#)

Q: Why to use lock statement in C#?

1 Answer

Oct 18, 2019
Lock will make sure one thread will not intercept the other thread which is running the part of code. So lock statement will make the thread wait, block till the object is being released.
Click here to read more about C Sharp
Click here to read more about Insurance

Related questions

Madanswer
Oct 18, 2019 in C Sharp (C#)
Feb 16 in C Sharp (C#)
Jun 16 in C Sharp (C#)
...