What is the purpose of the Thread.Sleep() method in C# multithreading?
A. To terminate the current thread immediately
B. To synchronize access to a shared resource
C. To signal one or more waiting threads that an event has occurred
D. To pause the execution of the current thread for a specified amount of time
Answer: Option D

Join The Discussion