On the other hand, if the lock is held for a longer time, spinning is wasteful as the spinning thread consumes CPU without doing anything useful.
另一方面,如果锁被占有很长时间,那么自旋的线程只会消耗CPU而不做任何有用的工作,因此带来浪费。
The thread pool is a useful tool for organizing server applications.
线程池是组织服务器应用程序的有用工具。
However, only one thread is running in this test run, so it's not especially useful for comparative analysis.
然而,在这个测试运行中只运行了一个线程,所以比较分析的用处并不大。
This feature is particularly useful when methods are being executed on out-of-scope threads; for example, starting a thread on a thread pool.
当在范围外的线程上执行方法时,此功能特别有用;例如,启动线程池中的线程。
Pool Settings and thread pool configuration is really useful to control the scalability and not scale indefinitely until the container crashed: -.
池的设置和线程池的配置对伸缩性的控制非常有帮助除非容器崩溃,否则你不会为无法确定伸缩性而头痛:-。
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 的过程中被阻止时,将等待中的线程与原始执行线程分离开来将会很有用,这将使它能继续工作。
Moreover the template is aware of thread-bound sessions which can be used across several methods, functionality very useful when using a transactional repository.
此外该模板知道线程绑定的会话,这个会话可以跨几个方法使用,这在使用事务型仓库时非常有用。
It will be useful to recognize when we have reached the limit of the dispatcher thread.
知道何时达到调度程序线程的限制非常有用。
The set-after-write technique may be useful for state replication, but it is not enough to provide thread safety.
set-after-write技巧可能对状态复制非常有用,但还不能提供线程安全。
For this, the JSR-166 experts created a far more useful abstraction, the ExecutorService interface, which models the thread-starting factory as a service that can be controlled collectively.
对于此问题,JSR- 166专家创建了一个更加有用的抽象(ExecutorService接口),它将线程启动工厂建模为一个可集中控制的服务。
The pullThread script included with this article might be useful for helping you isolate the trace entries for this particular thread.
本文所包括的pullthread脚本可以帮助将此特定线程的跟踪条目分离出来。
To clarify these three issues on the basis of their own, we use "understand" as the main thread, and do a brief comparative analysis, trying to draw some useful views.
在先弄清楚这三个不足的基础上,以理解为主要线索,对它们做简要的比较浅析浅析,试图得出一些有益的看法。
Other applications for ThreadLocal in which pooling would not be a useful alternative include storing or accumulating per-thread context information for later retrieval.
其它适合使用ThreadLocal但用池却不能成为很好的替代技术的应用程序包括存储或累积每线程上下文信息以备稍后检索之用这样的应用程序。
This list has been compiled from the Useful Abbreviations thread on the Diabetes Forum.
这张列表来源于糖尿病论坛的有用的缩写词汇这一版块。
Instead, connection pooling allows the idle connection to be used by some other thread to do useful work.
连接池允许其它线程使用空闲连接来做其它有用的工作。
Some of these objects are useful in blocking a thread until some event occurs.
这些东西很有用在阻止一个线程的执行直到某些事件发生。
Proved by experiments, after being soaked with boiling water for 5-15 minutes, the useful ingredients in the tuckahoe thread can be separated out in water by about 80%.
经实验验证,当开水浸泡本发明的茯苓丝5 ~15分钟后,其茯苓丝中的有用成分就能被水析出80%左右。
Another example where this approach is useful is, if you want to gather performance data of a specific thread from a group of threads.
如果您想要收集效能资料的特定执行绪的执行绪群组从这种方法很有用的另一个范例是。
Thread technology is one of the most important functions of modern operating system, and it is also a useful method for programmer to develop high-performance parallel program.
线程技术是现代操作系统最重要的功能之一,也是程序员开发高性能并发程序的得力工具。
Thread technology is one of the most important functions of modern operating system, and it is also a useful method for programmer to develop high-performance parallel program.
线程技术是现代操作系统最重要的功能之一,也是程序员开发高性能并发程序的得力工具。
应用推荐