Vidyalelo
C# Programming · Q15

Multithreading in C Sharp

Programming · C# Programming · question 15

Q15

What is the purpose of the lock statement in C# multithreading?

A.
To execute a block of code in parallel
B.
To synchronize access to a shared resource
Answer
C.
To allocate memory for storing thread-related data
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board