aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Is this right?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Is this right??" Watch "Is this right??" New topic
Author

Is this right??

Doit
Ranch Hand

Joined: Aug 03, 2000
Posts: 169
You can use yield, sleep(int) and wait() for yielding other threads
- Thanks
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
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

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this right??