You can use yield, sleep(int) and wait() for yielding other threads - Thanks
Madhav Lakkapragada
Ranch Hand
Joined: Jun 03, 2000
Posts: 5040
posted
0
No. sleep() and yield() are static methods of the Thread class and both methods operate on the currently executing thread. Likewise, wait() is a method of the Object class and causes current thread to wait until another thread invokes the notify() method or the notifyAll(). Please refer to the API for more details..... Regds. - satya