The call to the static method Thread.yield( ) inside run( ) is a suggestion to the thread scheduler (the part of the Java threading mechanism that moves the CPU from one thread to the next) that says, "I’ve done the important parts of my cycle and this would be a good time to switch to another task for a while." It’s completely optional,
这是Thinking in java上的一句话,也没有说让其它线程执行多久,for a while 是多久?
我想也许是一个时间片吧。