• 不过每个条件变量应该伴有一个互斥

    However, a mutex should accompany each condition variable.

    youdao

  • 正是POSIX条件变量的事!

    That's precisely what POSIX condition variables can do for you!

    youdao

  • 还要注意两个条件变量使用相同互斥锁

    Also note that both condition variables use the same mutex.

    youdao

  • 条件变量允许线程按照共享资源一个同步。

    Condition variables allow threads to synchronize to a value of a Shared resource.

    youdao

  • 使用TABLE命令可以操作模型条件变量

    Variations in model conditions can also be made using the TABLE command.

    youdao

  • 因此最后两个线程等待条件变量互斥锁没有锁住。

    Therefore, at the end of it all, you now have two reader threads, both waiting on the condition variable, and the mutex is unlocked.

    youdao

  • push方法依赖任何条件变量所以没有额外的等待

    Now, the push method doesn't depend on any condition variables, so no extra waiting there.

    youdao

  • 一旦计数器达到界限就激活线程等待条件变量

    The thread that activates once the counter reaches the limit would wait on the condition variable.

    youdao

  • 线程模块提供了许多同步原语包括信号量条件变量事件

    The threading module does provide many synchronization primatives, including semaphores, condition variables, events, and locks.

    youdao

  • 条件变量允许任务等待一个同步语,以进入临界

    A condition variable allows a task to wait on a synchronization primitive within a critical region.

    youdao

  • 更新条件变量可以控制多线程环境任务执行顺序

    UPD: with condition variables you can control the order of tasks execution within multithreading environment.

    youdao

  • 条件变量开发者能够实现一个条件,在这个条件线程执行然后被阻塞

    A condition variable enables developers to implement a condition in which a thread executes and then blocked.

    youdao

  • 队列时候,线程现在并不抛出异常而是条件变量阻塞自身

    Instead of throwing an exception when the queue is empty, the reader thread now blocks itself on the condition variable.

    youdao

  • 互斥锁有个讲到方面很多操作系统支持条件变量概念

    An aspect of the mutex I haven't covered here is that many operating systems support the concept of a condition variable.

    youdao

  • 有些实现中线程可能偶尔在没有信号送到条件变量的情况下过来。

    In some implementations, threads may occasionally wake up without a signal sent to their condition variable.

    youdao

  • 这么会唤醒所有等待条件变量_ cond线程;读线程现在隐式地争夺互斥

    Doing so awakens all the reader threads that were waiting on the condition variable _cond; the reader threads now implicitly compete for the mutex lock as and when it is released.

    youdao

  • 对于清单13清单14要注意一点这个阻塞队列两个条件变量而不是一个

    The first thing of note in Listing 13 and Listing 14 is that there are two condition variables instead of the one that the blocking queue had.

    youdao

  • 接下来线程需要确保(第二检查)等待条件变量时间超过指定超时时间

    Next, the reader thread needs to ensure (and this is the second check you perform) that it does not wait on the condition variable any more than the specified timeout period.

    youdao

  • 推荐方法使用条件变量—即pthread_cond _ t类型变量

    The recommended method is to use condition variables-that is, variables of type pthread_cond_t.

    youdao

  • 解决缺憾使用POSIX条件变量模拟同步原语一系列文章中对此进行了概述。

    To work around this omission, I use the POSIX condition variable emulations synchronization primitives, which are outlined in the series of articles.

    youdao

  • POSIX条件变量将是下一篇文章主题其中说明如何正确使用条件变量

    And POSIX condition variables are the subject of my next article, where I'll show you exactly how to use them.

    youdao

  • Linuxpthreads中,使用pthread_cond_destroy来销毁条件变量

    In Linux pthreads, the pthread_cond_destroy is used to destroy the conditional variable.

    youdao

  • 如果队列了,线程等待_ wcond条件变量线程队列中取出数据之后需要通知所有线程

    If the queue is full, the writer thread waits on the _wcond condition variable; the reader thread will need a notification to all threads after consuming data from the queue.

    youdao

  • 为了达到那个目的线程模块提供许多同步化原生支持包括事件条件变量信号灯

    To that end, the threading module provides a number of synchronization primitives including locks, events, condition variables, and semaphores.

    youdao

  • 互斥一起使用时,pthreads条件变量可以在线程之间提供基于事件同步机制,不过同步的。

    When used along with the Mutex, pthreads conditional variables provide event-based synchronization between threads, but they are synchronous.

    youdao

  • 不再使用条件变量时,应该调用pthread_cond_destroy释放初始化时分配资源

    When you're done with a condition variable, you can release any resources allocated during initialization with a call to pthread_cond_destroy .

    youdao

  • 允许原子地(atomically)解除互斥锁定,等待条件变量不会有干涉其他线程可能

    It also allows you to unlock the mutex and wait on the condition variable atomically, without the possible intervention of another thread.

    youdao

  • 任务设计变量包括任务输入变量、任务条件变量任务结果变量每个变量包含一些任务设计因素

    Task design variables include task input, task condition and task outcome varia-bles, and each variable still includes some design factors.

    youdao

  • 如果另一个线程条件变量调用pthread_cond_signal,那么那个等待这个条件而被阻塞的线程就会被唤醒。

    If another thread calls pthread_cond_signal on a condition, then a thread that was waiting on that condition variable is woken up.

    youdao

  • 这个操作要消耗一定时间实际上这个时间长了,可能在进行这项操作的同时,线程所等待条件变量的值在这期间已经改变了。

    This may take some time. In fact, it may take so much time that the condition you were waiting for is no longer the case.

    youdao

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

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

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