Examveda

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: Option D


This Question Belongs to C Sharp Programming >> Multithreading In C Sharp

Join The Discussion

Related Questions on Multithreading in C Sharp

What is multithreading in C#?

A. The ability of a program to handle multiple inputs simultaneously

B. The process of executing multiple tasks in a sequential manner

C. The process of running multiple programs at the same time

D. The ability of a CPU to execute multiple threads simultaneously