Runnable Object的意思|示意

美 / / 英 / /

Runnable对象


Runnable Object的网络常见释义

可运行的对象 在Swing中启动线程负责很少的事务,主要干两件事情,第一件就是创建一个可运行的对象(Runnable Object),这个可运行对象的任务比较重要,它负责初始化图形界面,第二件就是将这个可运行对象安排到另外一个非常重要的线程,事件分派线程...

Runnable Object相关例句

In the constructor of StockQuoteGenerator class, which is a singleton class, we are starting a new thread and assigning a Runnable object to that thread.

在stockquotegenerator类(一个单态类)的构造函数中,我们启动了一个新线程,并向该线程分配了一个Runnable对象。

With a preallocated Runnable object and a separate scope, you should always be in a position to report a problem without using any memory in the context the error occurred.

通过一个预先分配的 Runnable 对象和一个单独的作用域,在错误发生时,您就应该总是能够报告问题,而无需使用任何内存。

The framework is easy to use for most benchmarking needs: just package the target code into some type of task object (either a Callable or Runnable) and then make a single call to the benchmark class.

这个框架很容易满足大多数基准测试需求:只要把目标代码打包成特定类型的任务对象(Callable或Runnable),然后调用benchmark类。

If your task is a Runnable, make sure that the computation is used to calculate some internal state that is used by task's toString method (which must override the one from Object).

如果任务是Runnable,就要确保任务的toString方法(这个方法必须覆盖object对象的方法)使用的某个内部状态是用这个计算获得的。