What's Thread.sleep() In Threading ?

user image

Muskan Anand

2 years ago

Thread's execution can be paused by calling the Thread.Sleep method. This method takes an integer value that determines how long the thread should sleep. Example Thread.CurrentThread.Sleep(2000). it will paused for 2 second.

Recent Doubts

Close [x]