Are these two statement equivalent?
Thread.sleep(0); Thread.yield();
Thread.sleep() and Thread.yield() do the same thing except that Thread.yield() relinquishes only to threads running on the same processor in multiprocessor environment.