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)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now