Login
Remember
Register
Ask a Question
Why to use lock statement in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
Why to use lock statement in C#?
lock-statement
statement-in-c#
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
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.
...