Q:

What is thread.sleep() in threading?

0

What is thread.sleep() in threading?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Thread execution can be paused by calling the Thread.Sleep method. This method takes on integer value that determines how long the thread should sleep
Example: Thread.currenttime.sleep(2000) // 2 Seconds

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Top 100 C# interview questions and answers 2022

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
How can you make a thread sleep for infinite time?... >>
<< How can you reference current thread of the method...