• The last point of interest for this section is the thread block times that are rolled up to the database level.

    最后将介绍上升数据库线程阻塞时间

    youdao

  • This will block the thread until all other threads have called the method, then they are released all at once.

    这么引起阻塞,当所有线程调用这个方法便同时释放所有线程

    youdao

  • Because the main thread is solely responsible for multiplexing between all clients, we cannot afford to allow it to block.

    为主线程单独负责所有客户机的多路复用,因此我们不能阻塞

    youdao

  • With locking, if one thread attempts to acquire a lock that is already held by another thread, the thread will block until the lock becomes available.

    使用锁定如果一个线程试图获取其他线程已经具有的锁定那么线程被阻塞直到该锁定可用

    youdao

  • How can the operation request and response be decoupled so the thread of execution does not have to block until a response is received?

    如何分离操作请求响应,以使得接收到响应之前不必阻塞线程执行

    youdao

  • Any caller that attempted to pass a task to a pool thread would find the pool empty, and its thread would block while it waited for an available pool thread.

    试图线程传递任务调用都会发现为空,在调用者等待一个可用的池线程的线程阻塞

    youdao

  • But after creating the second thread, the primordial thread is preempted and is never allowed to tell the threads to terminate because the two RT threads execute on the two processors and never block.

    但是创建第二线程原始线程抢占并且再也允许告知线程结束因为RT线程两个处理器上执行而且永远不会阻塞。

    youdao

  • When one thread is executing a synchronized block, any thread waiting to enter that block is stalled.

    线程正在执行同步时,任何等待进入块的线程都将被阻塞。

    youdao

  • Synchronized methods and blocks allow a thread to lock an object on entry and unlock the object on exit (to the method or block).

    同步方法代码允许线程入口处锁定对象出口处解锁(针对方法代码)。

    youdao

  • This may not always be the desired approach, however, and it is likely that the reader thread might want to wait or block itself until the time data becomes available.

    但是这种做法总是我们要的,线程可能希望等待(阻塞自身),直到数据可用为止。

    youdao

  • Specifically, if everything is happening in a single thread, performing long operations such as network access or database queries on the UI thread will block the whole user interface.

    特别是如果把所有事件放在主线程中来处理,需要长时间来处理的事件比如网络访问或者数据库查询阻塞整个UI

    youdao

  • In blocking mode, a thread will block on a read or a write until the operation is completely finished.

    阻塞模式中,线程在读时阻塞,一直到读或写操作彻底完成

    youdao

  • Specifically, if everything is happening in the UI thread, performing long operations such as network access or database queries will block the whole UI.

    如果UI线程需要处理一件事情那些耗时很长的操作——诸如访问网络查询数据库等——将会阻塞整个UI(线程)。

    youdao

  • Number of blocks and total block time: the number of instances and total elapsed time when the thread was in a BLOCKED state while invoking a method or service.

    阻塞数量阻塞时间:在调用某个方法或服务处于BLOCKED状态线程实例数量和总占用时间。

    youdao

  • A shortcoming of the synchronous approach is that the consumer must wait while the service is performed — the consumer's thread must block while the service runs.

    同步方法不足之处在于执行服务使用者必须阻塞——在服务运行线程必须阻塞。

    youdao

  • When a thread exits a synchronized block as part of releasing the associated monitor, the JMM requires that the local processor cache be flushed to main memory.

    线程释放相关监视器而退出一个同步时,J MM要求本地处理器缓冲刷新存中

    youdao

  • Because of the single thread model described above, it's vital to the responsiveness of your application's UI that you do not block the UI thread.

    根据以上线程模式描述要想保证程序界面响应能力,关键不能阻塞UI线程。

    youdao

  • Block the worker thread and wait for the response.

    阻塞工作线程等待响应。

    youdao

  • This was achieved by adding a general "catch-all" block in the Thread class.

    目标是通过thread中添加一个通用的“catch - all”代码来实现的。

    youdao

  • Thread 1 exits the synchronized block and returns instance from the getInstance() method.

    线程1退出synchronizedgetInstance()方法返回实例

    youdao

  • If necessary, a thread can block on the agent until its changes have been applied, or you can specify an action to be executed when the changes are applied.

    有必要线程可以阻止agent直至更改应用或者可以应用变更指定执行操作

    youdao

  • In addition, volatile variables (unlike locks) cannot cause a thread to block, so they are less likely to cause scalability problems.

    此外volatile变量不会像那样造成线程阻塞因此很少造成可伸缩性问题

    youdao

  • The synchronized keyword lets only one thread enter a code block at a time.

    synchronized关键字每次允许一个线程进入代码块。

    youdao

  • allows your thread to block - by calling f.get() - to ensure the network calls succeed, or go away by ignoring f altogether.

    可以阻塞线程,再调用f.get()可以网络调用继续进行或是忽略掉f

    youdao

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

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

    youdao

  • Most programmers know that the synchronized keyword enforces a mutex (mutual exclusion) that prevents more than one thread at a time from entering a synchronized block protected by a given monitor.

    大多数程序员都知道synchronized关键字强制实施互斥锁(互相排斥),这个互斥锁防止每次多个线程进入一个给定监控器所保护同步语句

    youdao

  • In case of an exception, the catch block simply called the exception publisher, then returned the executing thread back to the thread pool.

    如果发生异常这个catch只是简单地调用异常发布程序然后正在执行线程返回线程池中。

    youdao

  • Using the Future object, the current thread can block to wait for the result

    利用Future对象当前线程阻塞等待结果

    youdao

  • Then, one thread enters the synchronized block to initialize instance, while the other is blocked.

    然后线程进入synchronized初始化instance一个线程则阻断。

    youdao

  • On the other hand, if the calling thread needs to be blocked for a specific time, then pthread_cond_timedwait is used to block the thread.

    另外一方面,如果调用线程需要阻塞段确定的时间那么就可以使用pthread_cond _ timedwait阻塞这个线程。

    youdao

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

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

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