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
Join The Discussion