• 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

  • 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

  • The factory class keeps a static map of the threads that have been connected and can either return the existing connection handle, or create and store the connection handle when called by a thread.

    工厂类保留已连接的线程的静态映射,可以在线程进行调用时返回现有连接句柄,或创建并存储连接句柄。

    youdao

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

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

    youdao

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

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

    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

  • 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

  • The application hangs because each thread owns a lock on one of the class loaders and wants the lock on the other class loader, as illustrated in the timeline diagram in Figure 2.

    应用程序之所以挂起,是因为每个线程都拥有一个类装入器上的锁,并想得到另一个类装入器上的锁,如图2的时间线图所示。

    youdao

  • In the run method of this class, grab the Web page, chunk, from off of the queue in each thread, and then process this chunk with Beautiful Soup.

    在这个类的run方法中,从队列中的各个线程获取web页面、文本块,然后使用BeautifulSoup处理这个文本块。

    youdao

  • The constructor of this class takes optional priority and release parameters to define how the JVM should schedule the thread.

    这个类的构造函数可以带有可选的优先级参数和释出(release)参数,以此来定义JVM如何调度线程。

    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

  • 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

  • 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

  • Also, if you want to invoke any of the dialogs provided by the pluglet class, you can do so, because these are actually executed on the UI thread.

    而且,如果您想调用pluglet类提供的任何一个对话框,您都可以这样做,因为事实上他们就在UI线程上执行。

    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

  • 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

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

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

    youdao

  • Generally, it does this by maintaining awareness or state of the mapped entity class instances it is responsible for by keeping a first-level cache of instances, valid for a single thread.

    通常,它通过保留对单个线程有效的一级缓存实例,维护它负责的映射实体类实例的可识别性或状态,从而做到这一点。

    youdao

  • A class that is not thread-safe can often be used safely in a multithreaded program as long as you ensure that instances of that class used by one thread are not used by other threads.

    非线程安全类通常可以安全地在多线程程序中使用,只要您能确保一个线程所用的类的实例不被其它线程使用。

    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

  • This new inner class helps us to understand and use the following two pairs of new methods in thread.

    新的内部类可以帮助我们了解下列两对新方法,并有助于我们在Thread中使用它们。

    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

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

    要创建一个线程局部变量,请实例化类ThreadLocal的一个对象。

    youdao

  • Instead of double-checked locking, use the Initialize-on-demand Holder Class idiom, which provides lazy initialization, is thread-safe, and is faster and less confusing than double-checked locking.

    不使用双重检查锁定,而使用Initialize - on - demandHolderClassidiom,它提供了迟缓初始化,是线程安全的,而且比双重检查锁定更快且没那么混乱。

    youdao

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

    该包中的PooledExecut or类是一种有效的、广泛使用的以工作队列为基础的线程池的正确实现。

    youdao

  • This sort of bug is commonly introduced when maintaining a class that was originally properly synchronized, but the thread-safety requirements were not fully understood by the maintainer.

    这种bug通常是在维护类时引入的:这个类原来是正确同步的,但是维护人员并没有完全理解线程安全需求。

    youdao

  • The in-memory representation of a schema is defined as the schema class, which is immutable and therefore thread-safe.

    模式的内存中表示被定义为schema类,该类是恒定的,因此也是线程安全的。

    youdao

  • Once the priority class of the process is set, SetThreadPriority is used to set the priority level of the thread within the priority class of the process.

    一旦设置了进程的优先级等级,就可以使用SetThreadPriority在进程的优先级等级内部设置线程的优先级层次。

    youdao

  • Once the priority class of the process is set, SetThreadPriority is used to set the priority level of the thread within the priority class of the process.

    一旦设置了进程的优先级等级,就可以使用SetThreadPriority在进程的优先级等级内部设置线程的优先级层次。

    youdao

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

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

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