Java sleep command
4 replies to this topic
Moderators - Reputation: 1666
Posted 25 December 2004 - 08:08 PM
There is always at least one thread (actually, there basically are always at least two that I can think of...) By writing Thread.sleep() you are asking the Thread class for its static method 'sleep', which will figure out which thread is running and make it sleep.