Vidyalelo
C# Programming · Q37

Multithreading in C Sharp

Programming · C# Programming · question 37

Q37

Which statement is true regarding thread safety in C#?

A.
Thread safety prevents the creation of new threads
B.
Thread safety guarantees that threads always execute in parallel
C.
Thread safety ensures that only one thread can access a resource at a time
D.
A thread-safe code can be accessed by multiple threads concurrently without causing any issues
Answer

Answer: Option D

Solution

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