Monday, May 22, 2006

Thread.yield()

The yield method provides a hint to the JVM that if there are other runnable threads, the scheduler should run one instead of the current thread. The JVM may interpret this hint in any way it likes - that is how the yield is handled is dependent on the JVM implementation for the operating system.

0 Comments:

Post a Comment

<< Home