• To create a thread-local variable, you instantiate an object of class ThreadLocal.

    创建线程局部变量实例化ThreadLocal对象

    youdao

  • Making a class thread safe requires additional care during the implementation and testing of the class.

    使一个线程安全需要实现测试该类时非常小心

    youdao

  • It may be easier to manage the use of a non-thread-safe class than to try and make the class thread-safe.

    管理线程安全使用试图使类成为线程安全容易些。

    youdao

  • Sometimes, it is very difficult to make a class thread-safe without compromising its functionality, ease of use, or performance.

    有时,要在不影响功能易用性性能情况下使成为线程安全困难的。

    youdao

  • This instance is used for all messages that are sent into the partition, making members of this class thread safe and providing the opportunity to cache required resources.

    这个实例用于发送分区中的所有消息使这个成员线程安全提供缓存必要资源机会

    youdao

  • It is often the easiest way to render a stateful class thread-safe, or to encapsulate non-thread-safe classes so that they can safely be used in multithreaded environments.

    常常状态描绘成线程安全的,或者封装线程安全使它们能够在多线程环境中安全地使用容易的方式

    youdao

  • In this case, the delegation model is a proper graph (with cycles), and so a deadlock can occur as a result of particular class relationships and thread usage.

    例中委托模型一个正确的(带有循环),所以发生可能是使用特定关系线程的结果

    youdao

  • The callback handler class has two thread local variables that can store the user ID and password from the client instance.

    这个回调处理器拥有两个线程本地变量用于存储来自客户端实例用户ID密码

    youdao

  • As soon as you implement a nontrivial class maintaining state between method calls, consumers of the class will want to know details about thread safety and performance.

    一旦实现方法调用之间保持状态重要该类使用者就会希望了解有关线程安全和性能的详细信息

    youdao

  • The parent of this class loader will be the class loader of the current thread context.

    加载父类加载器当前线程上下文的类加载器。

    youdao

  • Just like the rest of the code in a typical Windows Forms application, any code that resides inside a timer event handler (for this type of timer class) is executed using the application's UI thread.

    典型窗体程序其它代码一样,任何驻留在一个定时器事件处理函数(指的是类型的定时器)中的代码也是使用应用程序UI线程所执行

    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

  • Consider a thread-safe container class - a data structure that guarantees thread safety to its clients.

    可以考虑使用线程安全容器—一个保证用户操作线程安全的数据结构

    youdao

  • GC roots can be found in the root stacks, in thread execution stacks, and in object and class fields.

    GC找到,在线成执行堆,在对象域里

    youdao

  • This scenario only occurs when the class calling the interruptible method is part of a Thread, not a Runnable or general-purpose library code, as illustrated in Listing 5.

    只有调用中断方法Thread一部分,而不是Runnable通用代码情况下,才会发生这样的场景,清单 5演示了这种情况。

    youdao

  • As an example, the code in Listing 1 USES an anonymous class to create a Thread Factory.

    例如,清单1代码使用匿名创建Thread Factory。

    youdao

  • This was achieved by adding a general "catch-all" block in the Thread class.

    目标是通过thread中添加一个通用的“catch - all”代码来实现的。

    youdao

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

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

    youdao

  • 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.

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

    youdao

  • Each worker thread performs some bit of work using the TaskHandler class.

    每个工作者线程使用taskhandler执行一部分工作

    youdao

  • When the bot is used, this property is read and each custom class is run as a thread of the main Watchit bot.

    使用bot时,属性读取每个自定义为主watchit bot一个线程运行

    youdao

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

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

    youdao

  • This constructor lets you specify the priority, memory sizes, and period for a thread, along with the class that represents the thread to be run (a class that extends PeriodicThread).

    构造函数能够指定优先级内存大小线程周期表示运行线程的(扩展periodicthread的类)。

    youdao

  • 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对象

    youdao

  • The PresentationReconciler class updates the text's appearance with every keystroke, and the Reconciler class runs in a daemon thread, parsing the document without holding up the user interface (UI).

    presentationreconciler根据每次更新文本外观,而Reconciler运行一个守护线程必将用户界面(UI)挂就能解析文档

    youdao

  • Class initialization Any type of regular or real-time thread can initialize a class, including a NHRT, which can cause unexpected MemoryAccessError.

    初始任何类型常规实时线程都可以初始化类,包括NHRT(可能导致意外的MemoryAccessError)。

    youdao

  • The java.lang package provides a thread class that supports methods to start and stop threads and set thread priorities, among other things.

    langpackage提供线程支持开始停止进程,设置进程优先级等等。

    youdao

  • The PeriodicThreadDescriptor class describes a thread to be started as part of a group. It provides a single public constructor.

    PeriodicThreadDescriptor描述了一个线程作为线程一部分启动

    youdao

  • A dictionary or a class is likely to be a better data structure for thread management. As a quick example, below is a class that can (almost) drop in for the threads list in the examples.

    字典可能线程管理更好数据结构

    youdao

  • To create a new non real-time thread the existing thread class is used unchanged.

    使用现有Thread、不做任何改动,就创建实时线程

    youdao

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

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

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