互斥对象是线程程序必需的工具,但它们并非万能的。
Mutexes are necessary tools for threaded programs, but they can't do everything.
重构工具做不到这一点,因为它不能考虑到这样一个决策细节的严重影响 —比如线程问题、命名和在其他方法中的可用性。
The refactoring tool won't do this because it can't take account of the serious implications — such as threading concerns, naming, and availability in other methods — that such a decision entails.
线程池是组织服务器应用程序的有用工具。
The thread pool is a useful tool for organizing server applications.
换句话说,工具提供的视图不仅仅可以显示类和类实例的交互作用,而且可以显示线程、进程和主机之间的交互作用。
In other words, the views provided by the tool are able to present not only the interactions of classes and class instances, but also interactions among threads, processes, and hosts.
您了解了一些用于分析线程和管理进程的、关键的工具和实用程序。
You've looked at the key tools and utilities used to analyze threads and administrate your processes.
虽然JLS给了我们可以使我们的程序线程安全的工具,但线程安全也不是天上掉下来的馅饼。
While the JLS gives us tools with which we can make our programs thread-safe, thread-safety does not come free.
这时可以使用相互作用图,统计图和线程分析工具来发现问题所在。
Use interaction diagrams, statistical views, and thread analysis tools to find the problem.
大多数系统管理工具仍要求参考进程而不是线程。
Most system management tools still require you to refer to the process rather then the thread.
但线程存储中的信息可能非常复杂,难于解释,因此开发了多个工具来帮助进行此分析。
But the information inside a thread dump can be complex and hard to interpret, so several tools were developed over time to assist with this analysis.
不过,对于上述的“可增长线程池”,此解决方案并不是十全十美:在AIO工具中排队会带来额外的开销和延迟。
However, as in the case of "growable thread pools" above, this solution is not perfect: queuing in the AIO facility introduces additional overhead and latency.
如果应用程序的运行时间超过了这个指定的挂起阀值,该工具将发出一则提醒线程可能已经挂起的通知。
If your application runs beyond this specifiable hang threshold, a notification will be sent out about the potentially hung thread.
如果问题是deadlock,线程分析工具将会显示哪个线程是您期望它工作,但是实际上在等待永远也不会发生的东西。
If the problem is a deadlock, thread analysis tools will show that threads that you expect to be working are actually waiting for something that is never going to happen.
vmstat工具输出线程/进程信息、内存/交换区使用率、换进/换出页面、磁盘I/O、页面错误和CPU统计信息。
The vmstat tool outputs thread/process information, memory/swap usage, page ins/outs, disk I/O, page faults, and CPU statistics.
此外,它还包含了高级的同步工具,如Barrier,多种线程安全的集合,以及多种构建Future模型的方式。
It includes advanced synchronization tools like the Barrier, several thread-safe collections, and a couple different ways to create futures.
请使用top和其它系统管理工具来验证调度是正确的,关于实际使用的线程调度方面的具体问题,请向您的Linux供应商或用户组询问。
Use top and other system management tools to verify that scheduling appears to be correct, and ask your Linux vendor or users' group specific questions about practical thread scheduling.
如果没有足够的线程提供服务,则传入请求(特别是Web请求)可以在AIO工具中排队,而不是立即被拒绝。
Incoming requests (especially Web requests) can be queued in the AIO facility, rather than be rejected immediately if there are not enough threads available to service them.
你还能让线程列表根据所标记的“flag”进行排序,来确保被标记的线程排在前面,你也可以使用调试工具条的下拉列表对线程加以过滤。
You can sort the thread list by "flagged" to make sure your threads are the ones at the top, and you can also filter the threads drop down in the debug location toolbar.
要做到这一点,您需要了解一些相关的工具,这些工具允许您使用线程来提高CPU的性能,而这正是本系列文章中最后一部分内容的研究范围。
To do this, you need to understand the tools that allow you to work with threads to improve your CPU performance, which is the scope of this final part of the series.
相反地,我们临时学习线程,在需要时向我们的工具箱添加新的技巧和技术。
Instead, we learn about threads AD hoc, adding new tips and techniques to our toolboxes as we need them.
挂起线程检测工具能在某线程完成请求的时间过长时,自动发出警告,从而帮助诊断挂起或变慢等性能问题。
The hung thread detection facility helps diagnose hanging or slow performance problems by automatically warning when a thread seems to take too long to complete a request.
压力工具是一个简单的、高性能的、使用线程的HTTP引擎,它模拟高强度压力的 HTTP 客户负载。
The stress tool is a simple, high-performance, threaded HTTP engine that simulates a very heavy load of HTTP clients.
例如,假设您想创建一个用于管理多线程应用程序调试信息的工具。
For example, suppose you wanted to create a facility for managing debugging information in a multithreaded application.
该分析工具也适用于在单处理器上运行多线程应用程序。
The analysis can also be applied to multi-threaded applications running on a single processor.
该工具将创建十个线程,每个线程分别模拟一个单独的测试用户。
The tool creates ten threads, each modelling an individual test user.
要在Debug视图中挂起执行线程,选择一个运行线程,单击Debug视图工具栏中的Suspend。
To suspend the execution of threads in the Debug view, select a running thread and click suspend in the Debug view toolbar.
Swing是一个单线程UI工具包。
实用工具JAR,它包括用于线程池实现的特定代码。
A utility JAR that includes the specific code for the thread pool implementation.
除了Web容器线程,WebSphereCommerce还有一个调度器和许多实用工具(如dataload和stagingprop),它们是并行执行的。
In addition to the web container threads, WebSphere Commerce has a scheduler feature and a number of utilities (such as dataload and stagingprop), which are executing in parallel.
在一个不同的线程上使用Rational Software Architect提供的工具来执行代码。
Use facilities provided by Rational Software Architect to execute the code on a different thread.
使用Executors工具类来创建线程池,而不是直接调用ThreadPoolExecut or构造器来创建。
You don't call the ThreadPoolExecutor constructor directly to create a thread pool but instead use the Executors utility class to create one.
应用推荐