• 接下来对于另一个线程DatamineThread几乎复制完全相同结构

    Next, you almost copy the exact same structure for the next thread pool class, DatamineThread.

    youdao

  • 分析段代码可以看到我们添加了一个队列实例然后将该队列传递给第一线程ThreadURL

    In looking at the code, you can see that we added another instance of a queue, and then passed that queue into the first thread pool class, ThreadURL.

    youdao

  • 如果发现应用程序需要线程那么请考虑使用ut il . concurrent中的某个executor例如PooledExecutor不用从头开始编写

    If you find yourself in need of a thread pool for your application, consider using one of the Executor classes from util.concurrent, such as PooledExecutor, rather than writing one from scratch.

    youdao

  • 使用Executors工具创建线程不是直接调用ThreadPoolExecut or构造器来创建。

    You don't call the ThreadPoolExecutor constructor directly to create a thread pool but instead use the Executors utility class to create one.

    youdao

  • 如果没有捕捉到它们那么线程退出线程池大小永久减少一个

    If the pool class does not catch these, then the thread will simply exit and the size of the thread pool will be permanently reduced by one.

    youdao

  • 调整线程大小基本上就是避免错误线程太少线程太多

    Tuning the size of a thread pool is largely a matter of avoiding two mistakes: having too few threads or too many threads.

    youdao

  • Executor实际上充当一个提供Executor 实现实例共同位置只有new方法例如用于创建线程);它没有预先创建实例。

    The Executor class does serve as a common place to get Executor-implementing instances, but it only has new methods (to create a new thread pool, for example); it doesn't have precreated instances.

    youdao

  • 中的PooledExecut or一种有效的广泛使用工作队列为基础线程正确实现

    The PooledExecutor class from this package is an efficient, widely used, correct implementation of a thread pool based on a work queue.

    youdao

  • 系统存在多个线程池方法或许对于扩展进行作业重新分配有用的。

    This method may be useful in extensions to this class that re-assign work in systems with multiple pools.

    youdao

  • 解决方法找到图书馆这样使用执行器套件使用有限的线程(只能下载一次)。

    Solution: find a library to do this or make use of the Executor suite of classes and use a limited pool of threads (then only download a few at a time).

    youdao

  • 解决方法找到图书馆这样使用执行器套件使用有限的线程(只能下载一次)。

    Solution: find a library to do this or make use of the Executor suite of classes and use a limited pool of threads (then only download a few at a time).

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定