• If necessary, a waiting thread is signaled to pick up the newly enqueued object.

    如果需要,则通知等待线程选取刚刚进入队列的对象。

    youdao

  • When the waiting thread is released, the state is reset to non-signaled state.

    当正在等待的线程被释放时,其状态就被设置为无信号的状态。

    youdao

  • When the mutex becomes signaled, only one waiting thread is released to access the resource.

    当线程锁的被标记,只有一个等待线程被释放去访问这些资源。

    youdao

  • This will cause the waiting thread to pause indefinitely and wait for the class to be signaled.

    这将引起等待线程无限期的阻塞并等待类来通知。

    youdao

  • If the list is empty, the number of waiting threads is incremented and the current thread is blocked.

    如果列表为空,就会增加等待线程的数量,并阻塞当前线程。

    youdao

  • In the auto reset event, the state of the object remains signaled until a single waiting thread is released.

    在自动重置事件(auto reset event)中,对象的状态会一直维持为有信号状态,直到单个正在等待的线程被释放为止。

    youdao

  • When the first thread exits the synchronized block, the waiting thread enters and creates another Singleton object.

    当第一个线程退出synchronized块时,等待着的线程进入并创建另一个Singleton对象。

    youdao

  • When a client becomes available on the request queue, it is immediately consumed by the first waiting thread blocked on the remove method.

    当客户机在请求队列上变为可用时,它就马上被remove方法中阻塞的第一个等待线程所消费。

    youdao

  • A single visitor doesn't just mean a few incidental page requests; it also means an open connection (with a waiting thread) for as long as the visitor stays.

    单个的访问不只是意味着一些偶然的页面请求;它还意味着在访问期间有一个持续打开的连接(带有等待线程)。

    youdao

  • When a thread is blocked waiting for I/O, it is useful to be able to separate the waiting thread from the original thread of execution, allowing it to continue working.

    当一个线程在等待I/O 的过程中被阻止时,将等待中的线程与原始执行线程分离开来将会很有用,这将使它能继续工作。

    youdao

  • It is possible for an exception to occur that forces a branch to the finally clause of the lock statement, releasing the lock and allowing access to any waiting thread to the corrupted resource.

    强行进入lock语句的finally子句、释放锁以及允许访问任意等待线程(该线程占用了已被破坏的资源),都有可能引发异常。

    youdao

  • This is good practice, because the waiting time of the reader thread is reduced after wake-up.

    这是一种好做法,因为这会减少唤醒之后读线程的等待时间。

    youdao

  • This allows the thread to stop waiting if no messages have arrived, and check a flag to see if we should keep waiting for messages.

    这将允许线程在没有消息到达的情况下停止等待,查看标志,看看是否应该坚持等待消息。

    youdao

  • Number of waits and total wait time: the number of instances and total elapsed time when the thread was waiting while invoking a method or service.

    等待数量和总等待时间:调用某方法或服务时,等待线程的实例数量和总占用时间。

    youdao

  • So when a thread is put into a wait state waiting for something to happen, it incurs a wait of some period of time.

    所以把一个线程置于等待某事发生的等待状态时,它会导致一段等待时间。

    youdao

  • Once all 25 threads were blocked, the tasks they are waiting on cannot be attached to a thread.

    一旦所有25个线程都被阻塞的时候,等待中的任务就无法分配到线程了。

    youdao

  • Because each thread is waiting for a lock held by the other, a deadlock occurs.

    因为每个线程都在等候对方持有的锁,所以就发生了死锁。

    youdao

  • This approach has some obvious drawbacks, including the fact that while a thread is blocked waiting for a lock, it cannot do anything else.

    此方法具有一些明显的缺点,其中包括当线程被阻塞来等待锁定时,它无法进行其他任何操作。

    youdao

  • For instance, a thread waiting until items are added to a linked list may wake up to find the list empty.

    比如,一个正在等待货物被加入到链表中的线程,当它被唤醒时可能发现链表是空的。

    youdao

  • You can use this method when waiting on a single thread synchronization object.

    当等待单一线程同步对象时,可以使用此方法。

    youdao

  • This could mean that the thread is hung, or stuck while waiting for something.

    这可能意味着线程由于等待已挂起或停滞了。

    youdao

  • This resulted in the deadlock, because the UI thread was blocked waiting for the API to return.

    这导致了这样的僵局,因为UI线程不再等待API的返回。

    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

  • The provider is now finished and can use its thread to perform other work (such as waiting for another request).

    现在,提供者的工作已经完成了,可以使用其线程执行其他的工作(例如等待另一个请求)。

    youdao

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

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

    youdao

  • Wait_Reason: Reason the thread is waiting.

    Wait_Reason:线程等待的原因。

    youdao

  • While a servlet holds a persistent request in a waiting state, that servlet is monopolizing a thread.

    当等待状态的servlet持有一个持久性请求时,该servlet会独占一个线程。

    youdao

  • Waits occur when a thread enters a wait state of WAITING or TIMED_WAITING pending another thread's activity.

    当线程进入WAITING或TIMED _ WAITING等待状态并暂停另一个线程的活动时将发生等待事件。

    youdao

  • If another thread calls pthread_cond_broadcast on a condition, then all threads waiting on that variable are woken up.

    如果另一个线程对这个条件变量调用pthread_cond_broadcast,那么所有等待这个条件而被阻塞的线程都会被唤醒。

    youdao

  • In the classic servlet model, an open connection means a dedicated thread is doing nothing but waiting until it needs to update the client in response to an event.

    在典型的servlet模型中,一个打开的连接意味着一个不执行任何操作的专用线程,它将一直等待,直到在响应事件时更新客户端。

    youdao

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

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

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