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

    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

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

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

    youdao

  • 这些同步提供了一种在等待条件变为消耗CPU途径

    The concurrent classes provide a way to consume no CPU while waiting for a condition to be true.

    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

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

    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

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

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

    youdao

  • 互斥对象解锁立即发生等待条件mycond通常一个阻塞操作,这意味着线程睡眠,在苏醒之前不会消耗CPU周期

    Unlocking the mutex happens immediately, but waiting on the condition mycond is normally a blocking operation, meaning that our thread will go to sleep, consuming no CPU cycles until it is woken up.

    youdao

  • 如果这些条件满足或者第二条指令执行之前需要等待依赖项那么它们可以在单独周期中执行。

    If these conditions are not all met, or if the second instruction needs to wait for dependencies before issuing, then they are issued in separate cycles.

    youdao

  • 机场等待愉快的事,很快得出结论:今天意味着明天更好滑雪条件

    Waiting at the airport is not pleasant, but he quickly concludes that snow today means better skiing conditions tomorrow.

    youdao

  • 边界条件等待未测试的、范围之外数据允许它们应用程序带到管辖范围之内。

    The boundary conditions wait, untested, for out-of-domain data that will permit them to bring your application to its metaphorical knees.

    youdao

  • 真正需要这样一种方法线程等待满足某些条件使线程进入睡眠状态。

    What you really need is a way to put a thread to sleep while it waits for some condition to be met.

    youdao

  • 适时达到这些条件然后等待

    Get these conditions right, then wait.

    youdao

  • 那么如果我们等待和平谈判条件成熟,我们等待长的时间,同时也就给各处的激进份子有可乘之机。

    Well, if we wait for the conditions to be ripe to talk peace, we will be waiting a long time, and in the meantime we will be giving the initiative to extremists, everywhere.

    youdao

  • 如果符合条件消息存在操作并不等待消息出现。只是简单地新的刷新间隔周期组装一个刷新响应将它返回调用者

    If no message exists, the operation does not wait around for one; it simply prepares another refresh Response with a new refresh interval period and returns that back to the caller.

    youdao

  • 条件满足停止等待或者超出最大等待时间时返回一个超时异常

    It will stop waiting if the condition is fulfilled, or return a timeout exception if it exceeds the maximum waiting time.

    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

  • 酿酒人员观察等待两个规定条件同时具备,然后就……开始采摘

    Winemakers watch and wait until these two defining moments line up, and then... let the harvest begin.

    youdao

  • 设备代理可以轮流检测的间隔设备启动后的任何时刻(或条件同时满足)查询等待执行的作业依赖于所处环境

    Depending on the environment, the device agent may poll for waiting jobs at a polling interval, or whenever the device is powered on, or both.

    youdao

  • 如果线程正在等待某个特定条件发生,应该如何处理这种情况?

    I ended my previous article by describing a particular dilemma: how does a thread deal with a situation where it is waiting for a specific condition to become true?

    youdao

  • 一旦条件满足,还需要一种方法唤醒等待满足特定条件而睡眠线程

    Once the condition is met you need a method to wake up the thread (s) that are waiting for that particular condition to become true.

    youdao

  • 一旦Selenium检测条件返回为停止等待

    Once Selenium detects that the condition returns true, it will stop waiting.

    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

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

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

    youdao

  • 因此意图提供CPU资源公平访问(等待某个条件变为)的编码模式实际上将消耗运行的整个CPU核心

    So a coding pattern intended to provide fair access to CPU resources while waiting for a condition to become true in fact consumes 100 percent of whichever CPU core it happens to start running on.

    youdao

  • McKechnie,有些人的居住条件”,他们已经开始耐心地等待新居

    Some, McKechnie says are living in "quite bad" conditions and were now getting impatient waiting for new homes.

    youdao

  • 解决这个问题的最佳方法使用pthread_cond_wait调用等待特殊条件发生。

    The best way to do this is to use the pthread_cond_wait call to wait on a particular condition to become true.

    youdao

  • 我们第2部分讨论已经知道Task2等待单个输入条件所有输入

    As we already know from our discussion in Section 2, Task 2 will wait for all inputs in this single input criterion.

    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

  • 加州马利布市招生公司VeritasPrepMBA招生研究负责人施勒姆(ScottShrum)建议等待最后结果的时候,要想方设法地自己的申请条件更加有优势。

    Scott Shrum, director of M.B.A. admissions research of Veritas Prep, an admissions firm in Malibu, Calif., suggests finding ways to make your candidacy even stronger while waiting for a final answer.

    youdao

  • 活动收到至少一个输入条件所有必需输入后,便可以执行该活动,否则等待这些输入到来

    An activity can execute if it receives all required inputs of at least one input criterion, otherwise it waits for these inputs to arrive.

    youdao

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

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

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