Thread.sleep causes the current thread to suspend execution for a specified period.

 This is an efficient means of making processor time available to the other threads of an application or other applications that might be running on a computer system.

Comments