If the other thread is called before the sleep method then the otherthread will continue processing. But if you havesleep(x);methody();then methody() will be called after the sleeping has finished.