• Most of time, you just create a thread, assign some task to it, and then continue to process other affairs.

    大多数时候,您只需创建一个线程,向其分配一些任务,然后继续处理其他事务。

    youdao

  • If you create a joinable thread but forget to join it, its resources or private memory are always kept in the process space and never reclaimed.

    如果您创建一个可接合的线程,但是忘记联接它,其资源或私有内存一直保存在进程空间中,从未进行回收再利用。

    youdao

  • This allows you to create an arbitrarily complicated data structure for the thread to work on, and pass it in as a single pointer.

    这样允许您创建一个任意复杂的数据结构,并将它作为一个指针传送给需要在这个数据结构上进行操作的线程。

    youdao

  • To make better use of CPU time, we can create a pool of NHRTs to process the data. By maintaining a pool of running threads, we have no thread startup and shutdown overhead when running.

    为更好地利用CPU时间,我们可以创建一个nhrt池来处理数据,通过维护一个运行中线程的池,在运行的时候就不存在任何线程启动和停止开销了。

    youdao

  • POSIX provides the mutex function to create critical sections that enforce exclusive access to an object (a piece of memory) by a single thread.

    POSIX提供了互斥函数来创建临界区,用于实施单线程对对象(一块内存)的独占访问。

    youdao

  • The primordial thread is allowed to create both RT threads.

    允许使用原始线程创建这两个RT线程。

    youdao

  • You can create a thread to run certain logic at specified time intervals or periods.

    您可以创建一个线程,用于在指定的时间间隔或时期内运行某种逻辑。

    youdao

  • When an SPU thread gets created, the library will create a new thread that manages the SPU context asynchronous to the main thread.

    在创建一个SPU线程时,这个库就创建一个新线程,它负责管理与主线程异步的spu上下文。

    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

  • Most programs create many temporary objects that are used within the context of a single thread but never escape to the visibility of other threads.

    大多数程序所创建的临时对象都用在单独的线程上下文中,很少被其他线程所用。

    youdao

  • Rather, they create a new process or thread every time a client connects to the application server.

    但是有些应用程序并没有使用进程/线程池机制,而是每当客户机连接到应用程序服务器都创建新的进程。

    youdao

  • Create a new thread in your pluglet and execute the code there.

    在pluglet里创建一个新的线程并在那里执行代码。

    youdao

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

    例如,清单1所示的代码使用一个匿名类创建了一个Thread Factory。

    youdao

  • This is a recipe for trouble because in some JVMs, creating a Thread is a heavyweight operation, and it's far better to reuse existing Threads than to create new ones.

    这可以解决一些问题,因为在一些JVM 中,创建Thread是一项重量型的操作,重用现有 Thread比创建新线程要容易得多。

    youdao

  • The examples in Listing 1 and Listing 2 both suffer from a fairly frustrating flaw, in that they force you to create Thread objects directly.

    清单1和 清单2中的示例都存在一个重要的缺陷,它们要求您直接创建Thread对象。

    youdao

  • The important value here is Threads_created, which is incremented each time mysqld has to create a new thread.

    此处重要的值是Threads_created,每次mysqld需要创建一个新线程时,这个值都会增加。

    youdao

  • On the right of the TCP channel configuration panel, click on ThreadPools to create a new Thread Pool for this channel (Figure 3).

    在TCP通道配置面板的右侧单击ThreadPools,为此通道创建新线程池(图3)。

    youdao

  • Keventd should run to create a new kernel thread.

    运行keventd,创建一个新的内核线程。

    youdao

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

    Executor类实际上充当着一个提供Executor 实现实例的共同位置,但它只有new方法(例如用于创建新线程池);它没有预先创建实例。

    youdao

  • POSIX allows you to create POSIX threads (pthreads) with different thread scheduling policies and priorities to meet differing application needs. Three such scheduling policies are.

    POSIX允许您创建具有不同线程调度策略和优先级的POSIX线程(pthreads)以满足不同应用程序的需求。

    youdao

  • First, you create a Worker object and pass it the URL of the script that will be executed in the new thread.

    首先,您创建一个Worker对象并向它传递将在新线程中执行的脚本的URL。

    youdao

  • Since the thread scheduler really amounts to instructions to "do a, then do B, then do c, etc." it was not difficult to create an entirely parallel case in a main function.

    因为线程调度程序真的等同于“执行a,接着执行b,然后执行c,等等”的指令,所以要在主函数中创建一个完全并行的情况也不困难。

    youdao

  • You can create a ThreadPoolStatus MBean to provide the management interface for the thread pool used to process these tasks and register it with JMX.

    可以创建ThreadPoolStatusMBean,提供处理这些任务所使用的线程池的管理接口,并把它用JMX注册。

    youdao

  • A straightforward way to do this would be to create a new class PriorityThreadPool (ThreadPool) that returned more important threads more often during the thread iteration.

    我们可以用一种直接的方式实现它,就是创建一个新类PriorityThreadPool (ThreadPool),这个类在线程迭代期间更频繁地返回更重要的线程。

    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

  • To use the WASThreadFactory, the application must first look up an Asynchronous Beans WorkManager, create a WASThreadFactory instance, and then construct a new thread pool.

    要使用WASThreadFactory,应用程序必须首先查找AsynchronousBeans WorkManager,创建一个 WASThreadFactory实例,然后构造新的线程池。

    youdao

  • Likewise, if the program communicates with the SPU code using mailbox access, it needs to create a new thread, for example, by calling fork or pthread_create.

    同理,如果这个程序与使用邮箱访问的SPU代码进行通信,它就需要创建一个新的线程,例如通过调用fork或pthread_create。

    youdao

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

    使用现有的Thread类、不做任何改动,就能创建一个非实时线程。

    youdao

  • However, immediately after the second create call returns, the main thread can't assume which thread (a or b) will actually start running first.

    然而,就在第二个create调用返回后,主线程无法假定是哪一个线程(a或b)会首先开始运行。

    youdao

  • In Listing 1, pthread_create is called to create a new thread with a default thread attribute.

    清单1中调用了pthread_create来创建一个含默认线程属性的新线程。

    youdao

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

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

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