大部分例句摘自Java 8 API 官方文档
The majority of instances of sentences are quoted from the Java™ Platform Standard Ed. 8 documentation.
elapse v. 消逝,流逝(指时间)
public final void wait(long timeout) throws InterruptedException
Causes the current thread to wait until either another thread invokes the
notify()
method or thenotifyAll()
method for this object, or a specified amount of time has elapsed.
yield v. 出产(作物); 产生(收益等); 提供; 屈服; 让步; 放弃;缴出; n. 利润,收益,产量
eg: static void yield()
A hint to the scheduler that the current thread is willing to yield its current use of a processor.
thread n. 线,丝线,线索,思路,线程
eg: public Thread()
Allocates a new
Thread
object. This constructor has the same effect as Thread(null, null, gname)
, wheregname
is a newly generated name. Automatically generated names are of the form"Thread-"+
n, where n is an integer.
heuristic adj. 启发式的
eg:
Yield is a heuristic attempt to improve relative progression between threads that would otherwise over-utilise a CPU. Its use should be combined with detailed profiling and benchmarking to ensure that it actually has the desired effect.
It is rarely appropriate to use this method. It may be useful for debugging or testing purposes, where it may help to reproduce bugs due to race conditions. It may also be useful when designing concurrency control constructs such as the ones in the
java.util.concurrent.locks
package.
be subject to 受限于,受。。。影响
precision n. 精确度
accuracy n. 准确度
promptly adv.准时地,及时地,马上,迅速
concisely adv. 简洁地