This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by Neal Hanson: Will a thread continue to run after yield() for a while ?
Yes, the yield() method is a very polite method; it simply tells other threads that this thread took its share and now other threads can do whatever they want to do. If no other threads exist, yield() does nothing ... Typically yield() can be found in bodies of very computational bound loops and the like. kind regards